How to Map network drive in QTP

Answers were Sorted based on User's Feedback



How to Map network drive in QTP..

Answer / palanivel

the script written as
Dim WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "E:", "\\Server\Public"

returns error as object required

Is This Answer Correct ?    1 Yes 0 No

How to Map network drive in QTP..

Answer / sonali

'This will work
Dim WshNetwork
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "E:", "\\Server\Public"

Is This Answer Correct ?    1 Yes 0 No

How to Map network drive in QTP..

Answer / nani

To map network drive in qtp use the following syntax:

Dim WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "E:", "\\Server\Public"

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More QTP Interview Questions

Connect to QC using AOM.

0 Answers   Deloitte,


Please can you give where can we get good QTP Training at Hi-Tech city Hyderabad?

10 Answers  


i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression

0 Answers  


hi i have completed my b.tech in cse stream. now i am working in an organisation in testing department. i want do sap course but i dnt know which module will boost my career can anyone suggest me which is good for my career

0 Answers  


How to make arguments optional in a function?

1 Answers   Crea,






There are 4 webpages in an application, in third page there is one cancel button i want to click that cancel button only, how can I click that cancel buttton ?

4 Answers   Wipro,


Write the vb script for the lowest and highest values of an array?

1 Answers   Manhattan,


How do we edit the script in QTP. Anybody can explain in detail..Thanks in advacne...

3 Answers   IBM,


how can i replace any text from the qtp script with some anothere text

1 Answers   Livetek,


Plz Explain How to access Or Store Script from VSS? Explain Real time work (qtp) where you store folders and next to how to you access that folders and how you maintain folders in VSS ? What are the Menu's in VSS? Suppose in Manual, by using Checkin Checkout u can access documents. how you access in QTp REal time?

0 Answers   CTS,


what type automation is fofollowed in the project?

1 Answers   Satyam,


what are pretesting activities

0 Answers  


Categories