Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2003
    Posts
    34

    Unanswered: Copying a file from NT

    Hi,

    I am new to perl. Hope someone can help me.
    I have to copy a file from one of my NT drives to another drive using perl.
    example from drive E:\\folder1\abc.xls to q:\\folder2\abc.xls

    Can we do this using perl code?

  2. #2
    Join Date
    Jun 2004
    Location
    Nowhere Near You
    Posts
    89
    File::Copy

  3. #3
    Join Date
    Mar 2004
    Posts
    114
    By checking the Online Help of ActiveState ditrib,

    Code:
    use File::Copy;
    copy("file1","file2") or die "Copy failed: $!";
    with file1 and file2 your full file path.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •