Sorry late getting back to this. I'm the only IT guy and had a couple fires to put out.
I tried the command that you specified and it worked. The commands in my batch file are all local to the c:\ drive. I'm going to try your suggestion and run a part of my batch file at a time to see where it is failing.
Do you know if there is a log I can check on the remote PC for errors?
Main Topics
Browse All Topics





by: Gary_The_IT_ProPosted on 2009-07-01 at 16:43:08ID: 24759261
If you see the commands from the BAT file in the job log, then it ran. What makes you think it didn't?
A few thoughts:
Try this:
RUNRMTCMD CMD ('dir c:\ > c:\runrmtcmd.test.txt') RMTLOCNAME('12.34.56.78' *IP) RMTUSER(USER) RMTPWD(PASSWORD)
Or, stick a command at the top of your BAT file that does something similar that you can check. Make sure you write output to a local drive or a UNC name.
Then check the root folder of the target PC for a file called runrmtcmd.test.txt. If it is there, then you are successfully running commands.
- Gary Patterson