richz has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to copy a file to another file and am using the 'system' function. This is the code: print "system returned ", system("copy", "\"$original_file\"", "\"$backup_file\""), "\n";
Now the weird thing is that this works on everyone's machine except for one person. He is running the same OS(win2K) but for some reason the copy is failing. The output he gets is this:
system returned 65280
I'm not sure if that return value is helpful at all and am not sure how else to really go about debugging this. Any help?
Thanks.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Win32: Weird file copy failure using system
by halley (Prior) on Jan 06, 2005 at 20:13 UTC | |
by tye (Sage) on Jan 07, 2005 at 03:03 UTC | |
Re: Win32: Weird file copy failure using system
by meredith (Friar) on Jan 07, 2005 at 01:53 UTC | |
Re: Win32: Weird file copy failure using system (errors)
by tye (Sage) on Jan 07, 2005 at 03:11 UTC | |
Re: Win32: Weird file copy failure using system
by holli (Abbot) on Jan 06, 2005 at 20:15 UTC |