On my Windows 7 machine I can run something like:
schtasks.exe /Change /TN "MyTaskName" /Disable
But /Disable doesn't seem to be available in Windows XP - is there any way of disabling it from the command line?
You can simply rename the task
In order to "enable" the task rename the
In order to acheive the run-once behaviour, you could always just code a 'wrapper' bat script that checks for a lock file.
Create the lock file on first run, and every there after the wrapper script will just exit if it finds the lock file: