In line command (Processus startup postponed)

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
yoann56
Posts: 2
Joined: 26 Jul 2010 02:24

In line command (Processus startup postponed)

#1 Post by yoann56 » 26 Jul 2010 05:38

Hi

I have this batch file :

sleep 60
cd D:\PM10\DEBUG\
START CEMeasAvg.exe 127.0.0.1 D:\PM10\Ce_LHC8.txt


Is it possible to write it in-line, something like ?

D:\PM10\DEBUG\START CEMeasAvg.exe 127.0.0.1 D:\PM10\Ce_LHC8.txt /T,60

In fact, I just want to postponed of 60 seconds, the process startup.
Thanks
Yoann

miskox
Posts: 630
Joined: 28 Jun 2010 03:46

Re: In line command (Processus startup postponed)

#2 Post by miskox » 26 Jul 2010 05:57

Code: Select all

@sleep 60 && D:\PM10\DEBUG\START D:\PM10\DEBUG\CEMeasAvg.exe 127.0.0.1 D:\PM10\Ce_LHC8.txt


Is this it?

Saso

yoann56
Posts: 2
Joined: 26 Jul 2010 02:24

Re: In line command (Processus startup postponed)

#3 Post by yoann56 » 26 Jul 2010 06:13

I have just try to lauch excel with a 60 seconds delay but it returns me :

C:\program Files\Microsoft Office\Office12>@sleep 60 && excel.exe
'sleep' is not recognized aas an internal or external command,
operable program or batch file.


Is there anothere way ?
Thanks for your answer
Yoann

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: In line command (Processus startup postponed)

#4 Post by aGerman » 26 Jul 2010 07:40

Do you really have a SLEEP command? It's not native batch.

Without sleep:

Code: Select all

START "" "D:\PM10\DEBUG\CEMeasAvg.exe" 127.0.0.1 "D:\PM10\Ce_LHC8.txt"


If sleep is available for you:

Code: Select all

sleep 60&START "" "D:\PM10\DEBUG\CEMeasAvg.exe" 127.0.0.1 "D:\PM10\Ce_LHC8.txt"


Regards
aGerman

Post Reply