Page 1 of 1

In line command (Processus startup postponed)

Posted: 26 Jul 2010 05:38
by yoann56
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

Re: In line command (Processus startup postponed)

Posted: 26 Jul 2010 05:57
by miskox

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

Re: In line command (Processus startup postponed)

Posted: 26 Jul 2010 06:13
by yoann56
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

Re: In line command (Processus startup postponed)

Posted: 26 Jul 2010 07:40
by aGerman
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