Jump to content

Recommended Posts

Guest inbaa
Posted

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

  • Replies 2
  • Created
  • Last Reply

Popular Days

Guest Pegasus \(MVP\)
Posted

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.

Posted

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


×
×
  • Create New...