Remote Command

In D6 when I run a remote command for win7 I typically wrap the commands in a .bat and execute the .bat

When I try to run an xcopy command inside the .bat I am getting nothing other than the Command exited with code: 0 and the file doesn’t get copied.

However, if I uncheck Wait for command to finish, then on the node a security dialog box pops up… I hit OK to run and it does what it’s supposed to do.

I have UAC turned off on all the nodes. Do you guys have any insight as to what might be keeping the xcopy from running?

Thanks,
Andrew

Hey Guys,

Well, I figured it out… sort of… I never got xcopy working, but apparently win7 ships with robocopy and that works like a charm.

Thanks…
Andrew

Hi,
Xcopy is not to be trusted. For example, depending on the command you execute, too much stdout will cause a block and stop any further commands from executing in your bat script file. Better to use robocopy or even better, python.
Mike

Good to know on the xcopy!!

thanks,
Andrew