title: Run interactive batch in Visual Studio post build events
body: <p>I have a program written in vb.net.  After I build, I want to launch an interactive batch file that executes a psexec command remotely. How can I do that?
  this is my post build event:</p>
  
  <pre><code>call "$(ProjectDir)ExecOnGw.bat"
  </code></pre>
  
  <p>And this is my batch that if it runs in a normal command prompt, execution is ok.</p>
  
  <pre><code>c:\Sysinternal\psexec.exe \\gateway "C:\Remotepath\mybatch.bat" -u mydomain\myuser -p ******
  pause
  </code></pre>
  
  <p>This batch calls another batch on a remote machine that does something, then if I want to exit, I have to press a "q" and "Enter". In a normal command prompt, it works fine. But in a Visual Studio post build event it goes down.
  Help me!</p>