Computer Hope
Microsoft => Microsoft Windows => Windows XP => Topic started by: associates on January 17, 2006, 07:28:34 PM
-
Hi,
I've got a question here. I have a visual basic script that does a thing i want it to on my XP Pro machine. Is there a way of controlling the execution of the script like 2 minutes after a user is logged onto the computer.
Thank you in advance and look forward to hearing from you
-
You might try putting a shortcut to your script in the C:\Documents and Settings\All Users\Start Menu\Programs\Startup folder. That should kick off your script at startup no matter who logs on.
For the two minute warning, try using a WScript.Sleep 120000 statement at the beginning of your script. You may have to adjust the time parameter (milliseconds). Many factors affect the Windows startup.
Hope this is helpful. 8-)
-
Great, that works. Thank you, Sidewinder