How to Schedule Task?

  • Thread starter Thread starter GB
  • Start date Start date
G

GB

Hi

I want to schedule a task to run about 5 minutes after system startup. Is
there a simple way of doing that, please?

XP Home edition

Geoff
 
Start-Control Panel-Scheduled Tasks

Now right click and go to new task. After creating it and naming it,
right click on it and click properties. You can do all the settings in
there such as when to run the task, etc. ;)

Nathan McNulty
 
Nathan McNulty said:
Start-Control Panel-Scheduled Tasks

Now right click and go to new task. After creating it and naming it,
right click on it and click properties. You can do all the settings in
there such as when to run the task, etc. ;)

Nathan McNulty

Thanks, been there, but I can't see how to delay the task by 5 mins after
startup.

Geoff
 
GB said:
Thanks, been there, but I can't see how to delay the task by 5 mins after
startup.

To do this you would need to use a helper program. This helper program
would basically intercept the call to the real program you wanted to
run, delay for the length of time that you wanted to delay, and then run
the real program. The task scheduler does not support this
functionality so you would need to look for a utility at your favorite
file download repository. Such a program would be relatively trivial to
write so there is probably one available online.
--
Tom Porterfield
MS-MVP MCE
http://support.telop.org

Please post all follow-ups to the newsgroup only.
 
Tom Porterfield said:
To do this you would need to use a helper program. This helper program
would basically intercept the call to the real program you wanted to
run, delay for the length of time that you wanted to delay, and then run
the real program. The task scheduler does not support this
functionality so you would need to look for a utility at your favorite
file download repository. Such a program would be relatively trivial to
write so there is probably one available online.
--
Tom Porterfield
MS-MVP MCE
http://support.telop.org

Please post all follow-ups to the newsgroup only.

Tom, thanks for your help. This is probably in the wrong NG, but will the
following do the job?

wscript.sleep (300000)
Set WshShell = WScript.CreateObject("WScript.Shell")
NotUsed = WshShell.Run("C:\testit.bat", 0, TRUE)

That lot goes in a file called Something.vbs which I then schedule as
described previously.
Testit.bat is the file I want to run 5 mins after startup.

Thanks for any further help.

Geoff
 
GB said:
Tom, thanks for your help. This is probably in the wrong NG, but will the
following do the job?

wscript.sleep (300000)
Set WshShell = WScript.CreateObject("WScript.Shell")
NotUsed = WshShell.Run("C:\testit.bat", 0, TRUE)

That lot goes in a file called Something.vbs which I then schedule as
described previously.
Testit.bat is the file I want to run 5 mins after startup.

Thanks for any further help.

That script should do it.
--
Tom Porterfield
MS-MVP MCE
http://support.telop.org

Please post all follow-ups to the newsgroup only.
 
Back
Top