title: Talking to the exe from the C# code
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/240171/launching-a-application-exe-from-c">Launching a Application (.EXE) from C#?</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to run an exe as a process from my C# code. The exe is a secure one and asks for a password before executing the command. I am unable to pass the password to the exe by any means. When i try to write a standard input it does not take it. Have anyone faced this kind of an issue. If so pls share your work arounds for the scenario. Thanks in advance</p>
  
  <p>I am editing the post to make it a little clear. The exe that i am trying to run is a command line exe. Its a white listing tool provided by mcafee. What i am trying to do is to set the password to the exe so that i can make it secure. the command goes like this</p>
  
  <p>sadmin passwd</p>
  
  <p>once i execute the command it will ask me for the password i want to assign</p>
  
  <p>new password:</p>
  
  <p>once i enter the password it will ask me to re-enter password</p>
  
  <p>re-enter password:</p>
  
  <p>Once the password is set, subsequently when i run other commands on the sadmin, It will prompt me to enter the password</p>
  
  <p>sadmin enable
  password:</p>
  
  <p>The password is not an argument to the command. It is passed to the prompt after running the command. So i am unable to achieve this by adding password as an argument to the command.</p>