G
Griff
hi there
I'm running ActiveState Perl v5.6.1 on Windows XP.
The code
$cmdstr = "copy old.txt new.txt";
system($cmdstr);
print "$^E";
produces the results
------------------------------------------
1 file(s) copied.
The system cannot find the file specified.
------------------------------------------
When I check the files old.txt and new.txt, the file copy has actually worked.
Why do I get this error message in EXTENDED_OS_ERROR ?
(If I print the "$^E" variable before running the program, I can see it is empty.)
Your assistance would be welcomed.
Thanks, Griff
I'm running ActiveState Perl v5.6.1 on Windows XP.
The code
$cmdstr = "copy old.txt new.txt";
system($cmdstr);
print "$^E";
produces the results
------------------------------------------
1 file(s) copied.
The system cannot find the file specified.
------------------------------------------
When I check the files old.txt and new.txt, the file copy has actually worked.
Why do I get this error message in EXTENDED_OS_ERROR ?
(If I print the "$^E" variable before running the program, I can see it is empty.)
Your assistance would be welcomed.
Thanks, Griff