Computing.Net > Forums > Windows XP > copying files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

copying files

Reply to Message Icon

Name: shabbydoo
Date: June 21, 2009 at 23:53:03 Pacific
OS: Windows XP
Subcategory: General
Comment:

Hi
I needed to copy certain files and put them in a separate directory. i was intending to use the file::copy module. however i kept receiving an error msg.. can somene please tell me wht I'm doing wrong.
my code is
#!usr/bin/perl
use File::Copy::Recursive
$filecopy1="D:/shabdita/logs2.zip";
$newfile1="C:/new/logs2.zip";
copy($filecopy1,$newfile1) or die "File cannot be opened";

. the error msg that is showing up on my screen is
"filename" is not exported by the file::copy::recursive module.
cant countinue after import errors at copy.pl at line 4
compilation aborted..
I need help as fast as possible.. please :)



Sponsored Link
Ads by Google

Response Number 1
Name: marty525
Date: June 22, 2009 at 05:30:53 Pacific
Reply:

Did you try using windows explorer? You can drag and drop the file into the new directory and it will copy that file into the new directory. I am assuming that the new directory is in the same computer.


0

Response Number 2
Name: shabbydoo
Date: June 22, 2009 at 21:42:20 Pacific
Reply:

yes but i needed a script so that this cpuld be done automatically instead. thats why. but thanks anyway.. :)


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Administrator account pro... Cd rom driver won't open



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: copying files

Copying Files to CD www.computing.net/answers/windows-xp/copying-files-to-cd/165903.html

xp setup cannot copy file www.computing.net/answers/windows-xp/xp-setup-cannot-copy-file/111028.html

Copy files preserving metadata? www.computing.net/answers/windows-xp/copy-files-preserving-metadata/153089.html