Error while launching QTP through VB script... Please help... - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Error while launching QTP through VB script... Please help... (/Thread-Error-while-launching-QTP-through-VB-script-Please-help) |
Error while launching QTP through VB script... Please help... - suresh_edk - 04-07-2009 Hi All, I am getting an error message "The system cannot find the path specified." when i try to launch QTP through VB sript. QTP.vbs ======= Code: Dim qtApp Please find the attached error screen shot... Kindly let me know what should be the problem and how to rectify it? Regards, Suresh EDK | QTP Learner RE: Error while launching QTP through VB script... Please help... - Tarik Sheth - 04-08-2009 1. Is your QTP installation directory on D drive? 2. I tried and successfully able to launch QTP using above code. 3. Try vbs file and installation directory keeping on same drive. RE: Error while launching QTP through VB script... Please help... - Tarik Sheth - 04-08-2009 well, I could launch the qtp from D drive as well. Try this 1. Click Start, All Programs, Accessories then right click on Command Prompt and select "Run as Administrator" cd to your windows\system32 directory enter the following command: regsvr32 vbscript.dll This is to register vbscript. 2.create a scripting file system object like Code: set x = CreateObject("Scripting.FileSystemObject") and then try. It should work RE: Error while launching QTP through VB script... Please help... - suresh_edk - 04-10-2009 Hi tariksheth, Many thanksd for your reply... QTP is installed in C drive... Even i tried copying the vbs file in the same path where QTP installed. But still getting same error. I don't have admin access in my office. So couldn't register the dll file.. Regards, Suresh Kumar K RE: Error while launching QTP through VB script... Please help... - Tarik Sheth - 04-12-2009 Well, It might be one of the reason for VBS file not being exeuted correctly. RE: Error while launching QTP through VB script... Please help... - anemuday - 04-16-2009 Hi, First check whether you have vbscript in your system. You can check this by going to C:\WINDOWS\system32\vbscript.dll. If this dll exists then you can run vbscript. Save your script in location say d:\Sampledir\samplescript.vbs Now goto command prompt and cd d:\Sampledir\ in command prompt cscript samplescript.vbs and click on enter. If QTP starts, it is fine or the problem might with access rights. Thanks, Uday. |