Page 1 of 1

Windoes Batch File Help

Posted: Sat Jun 28, 2008 12:50 am
by intodesi
I have the command prompt application ((runs in a windows command promt)) and I am looking for a way to auto mattically input the required data into this application.
I have this so far

Code: Select all

@ECHO OFF
echo Benchmark Firmware
benchamrk.exe < com.txt
in com.txt is the number "1"
when benchmark starts, a com port is required for the first entry..

Code: Select all

< com.txt
selects the com port, and my program runs.
when the program has finished running ((usually takes abut 2 minutes)) I am required to hit esc to end it.. and thats the part I am stuck on.. how can I make my batch script wait 2 minutes and then end the benchmark.exe?

Posted: Sun Jun 29, 2008 1:49 am
by John Adams
sleep.exe