I am writing a script that copies certain files based of a data file. It is supposed to copy the files from a given server (sourceServer) in a datafile and paste them in another server (destinationServer). I am able to use xcopy to copy files on my own server no problem but having trouble finding a way to copy and paste from and to other servers. The purpose of the script is that another person can deploy the script and it will copy from the sourceServer to the destinationServer. Is there a way to achieve this with batch scripting?
Here is the code I am trying to make work.
Am I trying to achieve smth impossible with batch or have I just not found the correct method yet?
I am working on a remote server and want the script to copy and paste on remote servers.
xcopy /Y /O %sourceServer%path %destinationServer%path