I am trying to copy a file from one machine to another with a different IP address, using perl. I have used my script to write the new file (on machine A), which is a DOS batch file. Now I would like to xcopy the file over to machine B, where it will be run by the windows scheduler.
Can I use some command to run an external DOS command like xcopy? Or is there a set of commands in perl which are appropriate to the task?
I have begun looking at:
OPENDIR, READDIR, CHDIR, RENAME
Will these work if I supply them with a full path including an IP address?