Micro Focus QTP (UFT) Forums
How to run .vbs files through wscript.exe - 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: How to run .vbs files through wscript.exe (/Thread-How-to-run-vbs-files-through-wscript-exe)



How to run .vbs files through wscript.exe - sams001 - 03-23-2013

Hi All

I am seeing an abrupt issue on my machine. I am trying to run a vbs file through windows base script host(wscript.exe). If i try to open the vbs file with wscript.exe (from right click-> Open with command), its opening just the command prompt window but not executing the file.

If i open the cmd window and give the following command, then also same is the scene.
cscript.exe "C:\abc\Desktop\Test.vbs"
or
wscript.exe "C:\abc\Desktop\Test.vbs"

Anyone please help me what is missing here. I am struck here.Sad

Thanks
Sams