Moving with File::Copy between Drives

2003-09-10 Thread Ford, Graham
I am getting the error 'Permission denied at test.pl line 3' when moving a file 
between two drive volumes under WIndows 2000.  The script is running with 
administrator permissions.  The script is short:

_start

use File::Copy;
move('e:/test','d:/test');

end

This works fine if I don't move between drives.  Please help me.

Thank you,
Graham Ford


___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: Moving with File::Copy between Drives

2003-09-10 Thread Jan Dubois
On Wed, 10 Sep 2003 13:33:40 -0700, Ford, Graham
[EMAIL PROTECTED] wrote:

I am getting the error 'Permission denied at test.pl line 3' when moving a file 
between two drive volumes under WIndows 2000.  The script is running with 
administrator permissions.  The script is short:

_start

use File::Copy;
move('e:/test','d:/test');

end

This works fine if I don't move between drives.  Please help me.

move() is just a fancy wrapper for rename().  And you cannot rename files
between drives; you have to copy them and then unlink() the old one.

Cheers,
-Jan

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs