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

Reply via email to