Posts: 1
Threads: 1
Joined: Sep 2009
Reputation:
0
09-11-2009, 06:47 PM
I have a .vbs file that I need to execute while a QTP script is running to make sure that the pc isn't locked. Is there a way to automate scheduling this .vbs to run and then turning it off when the script is done?
Thanks,
Christine
Posts: 61
Threads: 1
Joined: Jul 2009
Reputation:
0
09-11-2009, 08:58 PM
Hi,
You can parameterize this file.Send parameters as On/Off.Based on those parameters, you can lock/unlock machine.
Else Use ExecuteFile(Unlockmachine.vbs)....which will unlock the machine & Executefile(LockMachine.vbs).
Two files UnlockMachine.vbs will unlock the machine & LockMachine.vbs will lock the machine
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
09-14-2009, 04:10 PM
Christine -
Search on google for Caffeine.exe.
It will keep your system unlocked during the execution process.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.