I spent a number of days this week trying to get VC to run a simple batch file remotely. I understand it may not be VC, but I do not know what I am missing.
I know that I could solve the problem by using network mounted drives and letting VC copy from one NFS drive to another, but I think that VC should be able to run a script on another server so I don't have to mount and unmount.
Here is the script.
copy \\vansybmain\ingres_output\batchanalysistbl.txt \\vandevsql\ingres_output\batchanalysistbl.txt >> \\vandevsql\ingres_output\log.txt
copy \\vansybmain\ingres_output\shipanalysistbl.txt \\vandevsql\ingres_output\shipanalysistbl.txt >> \\vandevsql\ingres_output\log.txt
Here is the output of the log.
Access is denied.
Access is denied.
Both servers are Win2003, and the user running the script is a local admin on both servers, has full rights on the source and destination folders.
I've checked/changed the following things.
Issue with Win 2003 and batch files. I've made sure the cmd.exe program can be used by the BATCH group.
Checked the log file to make sure that both copy and cmd are actually working.
The script works fine run locally on the server and remotely on other servers.
So, all I am trying to do is copy two small text files from one server to another.
Any ideas?
Thanks, Mike