Creating a Scheduled Task that runs forever on Windows XP
- by Mike Fiedler
When I create a scheduled task, I do so via command line:
schtasks.exe /Create /TN "startup-script" /TR "C:\startup.bat" /RU taskuser
/RP taskpasswd /SC ONLOGON
The idea is that this task run forever. The batch opens a java process that is never meant to end.
I've used ONLOGON, as the machine auto-logs in as taskuser.
All this works fine,…