pjaiswal
10-04-2006, 06:15 PM
I am trying to run a command on a remote machine using PsExec (PsExec.exe in C:\Windows\System32\ on local computer) & the Remote tab feature.
I have created a bat file on \\xyzmachine\ called c:\abc\test.bat, which has a single command: md C:\testfolder. I created a build script which should run this bat file on xyzmachine. I also logged the command being used in this step, which is
PsExec \\xyzmachine -u xyz -p xyz cmd /c c:\abc\Test.bat
Running this command on the command line on my machine just works fine and it creates a folder on the remote machine. But when I run it using the build script, though the folder is created on the remote machine as desired but it does not exit the step in the build script. Am I doing something wrong?
Thanks,
Pragya
I have created a bat file on \\xyzmachine\ called c:\abc\test.bat, which has a single command: md C:\testfolder. I created a build script which should run this bat file on xyzmachine. I also logged the command being used in this step, which is
PsExec \\xyzmachine -u xyz -p xyz cmd /c c:\abc\Test.bat
Running this command on the command line on my machine just works fine and it creates a folder on the remote machine. But when I run it using the build script, though the folder is created on the remote machine as desired but it does not exit the step in the build script. Am I doing something wrong?
Thanks,
Pragya