A real simple way is to set up file shares on each of the remote computers, then run a Perl script to copy files to these shares. Another way is to use ftp servers in conjuction with the standard Perl Net::FTP module. Yet another approach is to use Microsoft SFU (Services for Unix) in conjunction with the standard Windows rcp command. Or set up a common network drive and run a process remotely on each computer to copy from that network drive ... or (perhaps better) don't copy at all, just use the common network drive.

If you give us some more background on what you are trying to achieve and why, we will be better able to help.

Update: If you are just asking how to copy files recursively from one directory to another, you might use the core File::Copy/File::Find modules or the CPAN File::NCopy module or run the Windows xcopy command or the more sophisticated RoboCopy utility from Windows Resource Kit (similar to Unix rsync utility). If you want some sample code, the convention here is that you should first show us what you have tried so far. Do not expect to be spoon fed without first putting in a genuine effort to solve the problem yourself.


In reply to Re: Win32-NetResources copy directory to number of remote machines by eyepopslikeamosquito
in thread Win32-NetResources copy directory to number of remote machines by pawcio

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.