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

Hi, My problem is as follows. I recorded a script that created Object repository of each action i recorded. But later I added one more step (which was to enter data in a textfield) into the script through expert view. But as no repository for this newly added step exists in the test, my script fails. So please help me to sort this problem that how can I create object repository of a new step in an existing test. Thanks everyone

1 Answers  


Discuss quicktest professional (qtp) environment?

0 Answers  


how to insert QTP to display errors and other description in the test results instead of halting execution by throwing error in the mid of executin due to an error (for object not found)?

1 Answers   Ordain Solutions,


how quick test record on dynamically generated urls and web pages.

3 Answers   Infosys, Satyam,


Hi Sudhananda, plz send me the QTP framework with any diagram and PPTS . I want to switch to automatio, I done QTP from professional person, but he does not give me his knowledge properly. so pls help me Thaks send me on following address mirajkar.akash@gmail.com

0 Answers   TechSoft,






please send detail navigation for merging of object ripositories in QTP 8.2

3 Answers   Infosys, Ordain Solutions,


How to test a web application using QTP?there is no any .exe file in web app,then how we can take the application for testing

2 Answers  


what is the frame work your using in automation ?

4 Answers  


Did u use check points during ur work experience ?

3 Answers   FedEx,


i'm using QTP 8.2, How should i select(browse) object repository from desktop(or from local local drives like C:\,D:\)?. Note:- object repository to select(browse) is been sent by some other person who is using QTP 9.0

1 Answers  


Among the 4 capture levels, Complete, Partial, Minimal, None. which one is mostly used?

1 Answers  


Who is the best faculty for QTP in Hyderabad? Is it Mr. G.C.Reddy, some are referring his name?

21 Answers  


Categories