title: Cant start *.exe with *.bat file, yet it will start if command is run from CMD directly
body: <p>I have a script that closes a process called ncat.exe and then reopens it, or at least that's what I want it to do, but it doesn't seem to be working when I run the .bat file. Here is part of the script:</p>
  
  <pre><code>TASKKILL /F /IM ncat.exe* /T &gt;nul 2&gt;nul
  ping localhost -n 3 &gt;nul
  regedit /S c:\ncatprintingPuttyDefaults.reg
  cd c:\
  ncat_lpt1.exe
  timeout /t 10 /nobreak &gt;nul
  </code></pre>
  
  <p>These is not starting <code>ncat_lpt1.exe</code> which has inside this script:</p>
  
  <pre><code>@ECHO OFF
  cd c:\Program Files (x86)\Ncat
  ncat.exe -l -k -p 5964 &gt; lpt1
  </code></pre>
  
  <p>This is were it gets interesting, if I go to cmd and manually type</p>
  
  <pre><code>cd c:\
  ncat_lpt1.exe
  </code></pre>
  
  <p>It runs right away no problem. So if done through the bat file wont work but manually it will. Mind Blown pufff...</p>
  
  <p>Help? Let me know if need any other detail, I tried to explain best as I could :)</p>