I am trying to run a .exe file which requires user input (press enter) to do further action. I want to call this .exe file for automation, as during automation argument enter need to be passed without user intervention, any idea how to achieve it ?
Asked
Active
Viewed 815 times
1
-
Just for clarification. You have prog_1 where you want to call prog_2 and pass parameters to it to mimic a user? – Mong Zhu Jul 07 '16 at 12:20
-
1Possible duplicate of [C# using Sendkey function to send a key to another application](http://stackoverflow.com/questions/15292175/c-sharp-using-sendkey-function-to-send-a-key-to-another-application) – PhilDulac Jul 07 '16 at 12:21
-
take a look at [this](http://stackoverflow.com/questions/16057063/how-to-pass-parameters-to-another-process-in-c-sharp) may be it helps – Mong Zhu Jul 07 '16 at 12:22
-
what type of exe is it, c#? if so use IlSpy – johnny 5 Jul 07 '16 at 13:56
1 Answers
1
echo. | programm.exe
the dot after echo
is required if you don't print anything else.

Kleidersack
- 452
- 4
- 13