title: How do I send commands to an EXE running through the command line with batch?
body: <p>I have a server application running called TerrariaServer.exe and I want to be able to send it commands with separate batch file. TerrariaServer.exe is a program running as a command line. How could I "feed" it a command such as "save" and "exit"? The answer might be pipes, but I'm not too sure. Here is kinda what I executed in a batch file while TerrariaServer.exe was running...</p>
  
  <pre><code>@echo off
  echo save | TerrariaServer.exe
  echo exit | TerrariaServer.exe
  </code></pre>
  
  <p>After that, nothing happen. I don't know if you need to know this but this is a video game server and the "save/exit" commands come with it.</p>