title: How do i change the root folder that psexec.exe uses?
body: <p>Im trying to run a batch file on remote computer using psexec.exe<br>
  My code is;</p>
  
  <pre><code>psexec.exe \\192.168.13.187 -u Administrator -p default -d -i c:\temp\abc.bat
  </code></pre>
  
  <p>But when i execute this on command prompt, it connects to remote server's system32 folder then start the batch file.. Problem is that batch file has some CALL method in it (like CALL XXX.BAT) (XXX.BAT file is in the same folder.) Since psexec.exe uses system32 folder as root path, after running c:\temp\abc.bat file successfully, it could not CALL the other batch file. throwing 'could not find the file specified'.. </p>
  
  <p>My question is; how do i use the remote C:\temp\ folder as a root path after connecting the remote computer ? </p>
  
  <p>Thanks for help in advance !!</p>