I'm trying to run the following commands on a Virtual XP based machine:
Set WshShell = CreateObject("WScript.Shell")
Set WshShell = Nothing
But I get the dreaded "General Run Error" on line 1
The virtual machine has tight security, could this be what's preventing me creating the Shell object?
My linkedIn Profile
Mark, did you try the code outside QTP editor and see if the same error is obtained
-- Here to Learn and share ---
Try reinstalling WScript on the machine using the installation from Microsoft.com
Tarun Buy the NEW QTP Descriptive Programming Unplugged Book ** Download QTP Unplugged 2nd Edition eBook for FREE **
declare the variable. And set
Set WshShell = Nothing in the begining.
Reinstall WScript might help.