Copying a file of 6Gb means you have to write 6Gb of data. That's going to take a long time. Instead of copying and removing, people tend to 'move' a file instead. That's fast when it's on the same filesystem, and on most modern OSses, it falls back to copy and delete if the data has to moved to a different filesystem.

But I don't really understand your question. You can't really speed up the process - at least not by using different statements in your program (you might be able to tune your OS that copying huge files goes faster). I don't know why you are considering a timer, and I've no idea what you mean by "copying until EOF to delete the file once it finished copying".

I would do the thing you're doing from the command line, and skip the Perl part:

find M:/Directory -name '*.BAK' \ -exec mv {} 'I:/(Directory0)/(Directory1)/(Directory2)/{}' \;

Abigail


In reply to Re: Copying a large file (6Gigs) across the network and deleting it at source location by Abigail-II
in thread Copying a large file (6Gigs) across the network and deleting it at source location by skyler

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.