Solved How to include enter keystroke in a batch file?

December 28, 2011 at 04:17:20
Specs: Microsoft Windows Server 2003
Hi Friends,

I am using a batchfile to run a simple program on my pc with help of scheduletask. but every time when the program executes it asks for user input ( RUN or END ), either i have to click on run or hit enter key to start the program. can anyone tell me how to make it run directly from the batchfile only.

this is what i am using in my batchfile :

" cd C:\Program Files\VIA\Registration Mail Sender

start /w RegMailSender_ThroughOutlook.exe "

please help me.

See More: How to include enter keystroke in a batch file?

Report •

December 28, 2011 at 06:59:04
✔ Best Answer
You can't do keystrokes in batch.

If the user input is from the program you're running, you can't do anything in batch to fix it.
The only way would be to edit the program you're running in some way and if it's not created by you, then you won't be able to fix it.

Report •

January 9, 2012 at 08:55:40
Have a look at the free program "AutoHotkey". If you put your batch in there you should be able to get it to input the Enter key function.

Always pop back and let us know the outcome - thanks

Report •

January 10, 2012 at 15:07:28
Check this out;

Happy is ONE who says I am an OttoMAN.

Report •

Related Solutions

Ask Question