Guest inbaa Posted July 17, 2008 Posted July 17, 2008 I create a task for *. exe to open everyday at 12.00 a.m .if it is system shut down when it gets log on at that time *.exe need to open .give your ideas
Guest Pegasus \(MVP\) Posted July 17, 2008 Posted July 17, 2008 Re: schedule task "inbaa" <inbaa@discussions.microsoft.com> wrote in message news:E2CB5CCE-5980-47DF-BD33-C67AC6EC70D6@microsoft.com... >I create a task for *. exe to open everyday at 12.00 a.m .if it is >system > shut down when it gets log on at that time *.exe need to open .give your > ideas Instead of scheduling your command directly, schedule the following batch file: @echo off set Semaphore=%temp%\sema.txt if not exist "%Semaphore%" goto Action dir "%Semaphore%" | find "%MyDate:~4%" > nul && goto :eof :Action echo %date% > "%Semaphore%" {Insert your command(s) here} You must create two scheduled tasks: a) One to run at 12:00 am b) One to run at boot time.
Guest Gus Posted July 17, 2008 Posted July 17, 2008 Re: schedule task "Pegasus (MVP)" wrote: > > "inbaa" <inbaa@discussions.microsoft.com> wrote in message > news:E2CB5CCE-5980-47DF-BD33-C67AC6EC70D6@microsoft.com... > >I create a task for *. exe to open everyday at 12.00 a.m .if it is > >system > > shut down when it gets log on at that time *.exe need to open .give your > > ideas > > Instead of scheduling your command directly, schedule the > following batch file: > @echo off > set Semaphore=%temp%\sema.txt > if not exist "%Semaphore%" goto Action > dir "%Semaphore%" | find "%MyDate:~4%" > nul && goto :eof > > :Action > echo %date% > "%Semaphore%" > {Insert your command(s) here} > > You must create two scheduled tasks: > a) One to run at 12:00 am > b) One to run at boot time. > > > try this:http://www.dennisbabkin.com/php/download.php?what=WOSB
Recommended Posts