Skip to main content
title explaining explaining the actual question
Link
Johu
  • 5k
  • 17
  • 43

Running a .exe with Mathematica How to pass an "enter" to the external application?

inline code highlighting
Source Link
Johu
  • 5k
  • 17
  • 43

I have been trying to make an .exe.exe file that I have become more automated by using MathematicaMathematica, 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 MathematicaMathematica to open the file with SystemOpen[]SystemOpen[], but I can not get it to enter anything through MathematicaMathematica itself. Let me know if you need anymore clarification!

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!

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!

Source Link

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!