run a batch file as scheduled task - in vista
osaddict
London, UK
Hey everyone, if been searching high and low, and i cant remember the exact text required to run a batch file as a scheduled task...
For example i want to run backup.bat, which ill store in say L:\misc\backup.bat
I've run the batch file and it does exactly what i want - but now i want to automate it.
I played with this stuff a long time ago, ive googled for a while and i just cant fine the correct text!
For example i want to run backup.bat, which ill store in say L:\misc\backup.bat
I've run the batch file and it does exactly what i want - but now i want to automate it.
I played with this stuff a long time ago, ive googled for a while and i just cant fine the correct text!
0
Comments
"cmd /c Batchfilename.bat"
or it wont execute properly.
or, uninstall windows, install a *nix, and stick it in crontab lol
edit:
i forgot there's also the schtasks command. you have to have Task Scheduler running for this to work though, and i'm not 100% sure it works in vista.
I thought i had to use cscript or wscript etc like i had done before on xp, but this seems to work - i tested it out and it performed as expected!
Thanks for the reply