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
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 :)
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.. :)
Summary: I appreciate all of your responses. This came to light when I tried to copy some files off of my CD and place them onto another computer (not the computer from which they originated). It would not e...
Summary: i have 98 installed and now installing xp on D drive, (After 1st restart) When copying files part arrived I get the following Error: Setup cannot copy the file: xxxxxxxxx.xxx To retry press enter... I...
Summary: Heya! I would like to make a copy of my whole My Documents folder on another hard disk partition (also NTFS). But although doing so via Windows Explorer preserves the "Date Modified" of the files, the...