Windoes Batch File Help

Topics NOT related to EQ2 or the emulator project.

Moderator: Team Members

Post Reply
intodesi
Posts: 87
Joined: Wed Feb 06, 2008 8:17 am
Location: Reno, NV

Windoes Batch File Help

Post by intodesi » 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

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?
The IRS, its not an agency, its a service. They do it because they love us.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Post by John Adams » Sun Jun 29, 2008 1:49 am

sleep.exe

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests