Hi!
I am trying to create a batch file, that would start a external dos application and then feed the application a few "ENTER" keystrokes, but cant get it working. The application dosent want to take the keystrokes. Any ideas?
Hi!
I am trying to create a batch file, that would start a external dos application and then feed the application a few "ENTER" keystrokes, but cant get it working. The application dosent want to take the keystrokes. Any ideas?
Use something else?
Getting almost anything useful done in a batch file always seems like far more effort than it ought to.
How about posting what you tried?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I had to use a batch because, a program that i am using needs to read a patch file in. But, i think i got it working already. Tested many different programs, that are made for just this purpose. Non of the newest programs worked, but a simple old one did the job just fine. The program name is Keypress.com. I put the next code inside a batch file and it worked nicely:
Keypress /R (R stands for ENTER)
program name