Automatically run exe without user input

July 26, 2009 at 20:17:26
Specs: Windows XP
Hi I have an exe which required user to enter a value during the middle run of exe. How to create a batch file to automatically run exe and set the input value as well so that no user interaction is needed? I wish this batch file can be run in quiet mode and with just one click. Is it possible to do this? Thanks.

See More: Automatically run exe without user input

Report •

July 27, 2009 at 15:01:24
It will only work if the exe will take command line parameters, or is able to read them from an ini, or similair file. What exe is it?

Report •

July 27, 2009 at 20:14:23
Hi I found a way to do this for one input. The | (pipe) will send output from command 1 to command 2. But what if I need to enter 2 inputs means I need to enter a password as well? Anyone know how to do that? Thanks.

SET username=E
ECHO. %username% | login.exe

Report •

July 28, 2009 at 01:52:03
It is possible to pipe multiple inputs, just split them into multiple
lines, e.g.

(echo %username%
echo %password%) | login.exe

However, you should not handle passwords in a batch file, as it
is not secure and such passwords can be discovered by another

Report •

Related Solutions

Ask Question