Search code examples
windowsbatch-filecmdwindows-xp

Run a batch file 5 minutes after startup in Windows Xp


I want to execute a .bat file 5 minutes after windows starts up. Unfortunately, windows task scheduler doesn't offer anything of the sort, only execute something right on start up. However, I need something to be 5 minutes after startup.

.bat file doesn't do much, just calls one separate .cmd file and passes a parameter. I've tried:

timeout /t 300 /nobreak
"C:\Documents and Settings\Administrator\Desktop\sikuli\runIDE.cmd" -r "C:\Documents and Settings\Administrator\Desktop\sikuli\SikuliXmlTestRunner.sikuli"

However, the runIDE.cmd gets called right away, regardless of the timeout.


Solution

  • You can give wait(300) command at the beginning in your sikuli script to achieve this.