in reply to Mass File Renaming
Hi,
my first post here so apologies as required in advance...
I've run into a similar problem, using:
my @files=<c:/Storage/*.csv>; #Reads all csv files
foreach(@files){
$newname=(extract some data from the file here)
$success=rename $oldname,$newname;
}
The error message I get is 'permission denied'.
If I have "old.txt" file in the same dir and execute a simple $success=rename "old.txt","new.txt"; then it works ok. If I change:
@files=<c:/Storage/*.csv>; to
@files=<c:/Storage/*.txt>; then it doesn't.
Confused, please help.