title: Psexec is not running an EXE program remotely
body: <p>Check everywhere for a reason but nothing I found matches my specific problem.  I have a program in <code>C:\somefoldername\anothersubdirectory\andanother\</code> of the remote pc that I try to run using PSEXEC but it does not take.  PSEXEC just does not want to run anything for me.  Now if I run a ping or tasklist via psexec, it works, though obviously this is in PATH.  </p>
  
  <p>So I am putting in:</p>
  
  <pre><code>PSEXEC \\pcname C:\somefoldername\anothersubdirectory\andanother\program.exe
  </code></pre>
  
  <p>and nothing happens.</p>
  
  <p>I even wrote a batch script that I tried running in two different ways.</p>
  
  <p>Script is just:</p>
  
  <pre><code>@ECHO OFF
  C:\somefoldername\anothersubdirectory\andanother\program.exe
  EXIT
  </code></pre>
  
  <p>and I had it copied to the remote pc's main directory (maybe I need to put it in a folder) and then I tried running <code>C:\batch.bat</code> using:</p>
  
  <pre><code>PSEXEC \\pcname C:\batch.bat
  </code></pre>
  
  <p>I also tries running:</p>
  
  <pre><code>PSEXEC \\pcname -c \\servername\batch.bat
  </code></pre>
  
  <p>so it copies it over to PATH.</p>
  
  <p>Neither worked.  </p>
  
  <p>Does any program I try to run via PSEXEC have to be in the remote pc's path?  </p>
  
  <p>I do have to admit that I have not done running an EXE remotely, but I have written lengthier scripts using psexec that use batch file on a server without any hiccups.  </p>
  
  <p>What is weird to is that the program I run has parameters and I task that runs through it, so I first taskkill it remotely, then I PSEXEC the SAME EXACT EXE as: </p>
  
  <pre><code>psexec \\pcname C:\...\program.exe -a -few -parameters ODBC
  </code></pre>
  
  <p>and that works. When I try to open just program.exe on its own, nope doesn't take.</p>
  
  <p>I also did try <code>psexecing iexplore.exe</code> and that didn't work either.</p>