Skip to main content
1 of 3

Running a .exe with Mathematica

I have been trying to make an .exe file that I have become more automated by using Mathematica, but I am having trouble getting it to work. The file is based in command prompt and I basically need to do:

  1. Open program
  2. enter string
  3. press enter key
  4. enter string
  5. press enter key
  6. enter string
  7. press enter key
  8. press enter key

I do not need any of the output from the program since it is making a new txt file for me which I will read separately. I do not know how to go about "pressing the enter key" or even inputting the string I need to. I can get Mathematica to open the file with SystemOpen[], but I can not get it to enter anything through Mathematica itself. Let me know if you need anymore clarification!