How do I only run a task on one startup a day?
January 25, 2008 7:48 AM
Subscribe
I need to schedule a task to run only on the first startup of each day.
Hi all, I'm running Windows XP and open source, light-weight solutions are preferred.
Thanks!
posted by edbyford to computers & internet (5 comments total)
if that doesn't meet your requirements, you're going to want to script a solution, basically, create a lock file with the current day's date. if you start up a second time that day, the system checks for the lock file, if it's there, the script will stop. if it find no lock file, or yesterday's lock file, it will (delete yesterday's and) create a new lock file and complete your task.
If you were running a unix variant, I could give you pretty quick shell example. Someone else will need to do a batch, VB or WSH version for you.
posted by jrishel at 9:37 AM on January 25, 2008