Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simulating the ENTER keypress...

Status
Not open for further replies.

cyprus106

Programmer
Apr 30, 2001
654
Alright, so I'm doing QA for this database program, and I wrote a quick batch file to fire off several old tests one after another so I could run the bat, go to lunch and come back with all the automated resuts. I built up the program and fired it off and when I come back, it turns out there's "pauses" stuck into the very last line of every executable it sends out. So every ten minutes or so you gotta flip back to the cmd box and press enter.
I was really hoping somebody could tell me how I can simulate an ENTER keystroke in a batch file. Thanks guys!

Cyprus
 
You could write a basic program to build the bat file
and send a CR$ to it (CHR$(13)) (or CRLF i.e. Chr$(13)+Chr$(10))

Whether that would work in your case, I don't know without
more info and trying it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top