Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Automatically run exe without user input
Name: yuenli Date: July 26, 2009 at 20:17:26 Pacific OS: Windows XP Subcategory: Batch
Comment:
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.
Name: tonysathre Date: July 27, 2009 at 15:01:24 Pacific
Reply:
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?
0
Response Number 2
Name: yuenli Date: July 27, 2009 at 20:14:23 Pacific
Reply:
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.
ECHO ON SET username=E ECHO. %username% | login.exe
0
Response Number 3
Name: klint Date: July 28, 2009 at 01:52:03 Pacific
Reply:
It is possible to pipe multiple inputs, just split them into multiple lines, e.g.
Summary: I don't know if you can do it directly using just cmd.exe's internal commands. For example, the SET /P command echoes the password back. Does anyone know of a way? In the meantime, here's a technique ...
Summary: I am new at this so forgive my ugly batch script (it's just plain old windows batch scripting language) . I am trying to normalize user input so that directory path entered by user would end up withou...