schedule task

  • Thread starter Thread starter inbaa
  • Start date Start date
I

inbaa

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
 
inbaa said:
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.
 
Pegasus (MVP) said:
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
 
Back
Top