in reply to Win32: Weird file copy failure using system

What error message does the COPY command print?

It is much easier for the program to figure out why things failed if you do the copying from within Perl instead. The return value from system rarely says more than "the command failed" and if the command didn't print an error message, all you can do is guess.

I'd use Win32API::File's CopyFile() or the portable File::Copy module.

- tye        

  • Comment on Re: Win32: Weird file copy failure using system (errors)