XP is just a number | |
PerlMonks |
Copying a file across servers in DOSby skynelson (Initiate) |
on Oct 18, 2010 at 23:11 UTC ( [id://866063]=perlquestion: print w/replies, xml ) | Need Help?? |
skynelson has asked for the wisdom of the Perl Monks concerning the following question:
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?
Back to
Seekers of Perl Wisdom
|
|