PDA

View Full Version : Run a program during a certain interval, randomly?



MitzEclipse
02-08-2002, 01:24 PM
Hi,

I am trying to figure out how to run this batch file during the day between the hours of 9-4p , on the weekdays.

Task Scheduler lets you schedule tasks, but does not allow you to randomize within an interval of time.

Anyone have any suggestions? If I need to download a 3rd party app - free would be best.

Thanks

rajatQ2
02-11-2002, 02:49 PM
what sort of batch file? If you are writing in Perl, you can easily get perl to run only if the time constraints are met. If done in msdos batch whatever, you could probably follow the same procedure, i just dont know any syntax for you.
have windows scheduler run the task periodically, maybe once per hour, and have the program quit by putting an If statement at the top of the file, to exit if the time constraints are not met. It is pretty easy to get time from MSdos batch, i would do a google search if i were you

Good Luck!