Windoes Batch File Help
Posted: Sat Jun 28, 2008 12:50 am
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
in com.txt is the number "1"
when benchmark starts, a com port is required for the first entry.. 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?
I have this so far
Code: Select all
@ECHO OFF
echo Benchmark Firmware
benchamrk.exe < com.txtwhen benchmark starts, a com port is required for the first entry..
Code: Select all
< com.txtwhen 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?