Hi All,
I am using Perl on NT4 FYI.
Can you use File::Copy to copy directories and their contents? My code does not throw up any errors even using use strict, but it does not move the directories either!
Here is the code in question:
#Copy the files across
foreach (@divs)
{
print "\n Copying ".$jobname."\\".$_." to ".$workroot;
copy ($jobname_full."\\".$_ ,"$workroot"
;
}
Any ideas on what code is needed to copy the whole directory?
Cheers
Jimbo
I am using Perl on NT4 FYI.
Can you use File::Copy to copy directories and their contents? My code does not throw up any errors even using use strict, but it does not move the directories either!
Here is the code in question:
#Copy the files across
foreach (@divs)
{
print "\n Copying ".$jobname."\\".$_." to ".$workroot;
copy ($jobname_full."\\".$_ ,"$workroot"
}
Any ideas on what code is needed to copy the whole directory?
Cheers
Jimbo