B
Brian
I am trying to move a directory that contains numerous other
subdirectories, e.g. c:\temp\source\temp1, temp2, to a new directory,
e.d. c:\test. Here is my script:
use Win32API::File qw( :ALL );
use strict;
my $source = "c:\\temp\\source";
my $destination = "c:\\test";
my $mvError = "";
MoveFileEx( $source, $destination, MOVEFILE_REPLACE_EXISTING() )
or die "Can't move $source to $destination: ",fileLastError(),"\n";
I get the following error:
Can't move c:\temp\source to c:\test\: Access is denied
Any ideas?
When I try: MoveFile( $source, $destination )
I get an error stating that the file already exists
subdirectories, e.g. c:\temp\source\temp1, temp2, to a new directory,
e.d. c:\test. Here is my script:
use Win32API::File qw( :ALL );
use strict;
my $source = "c:\\temp\\source";
my $destination = "c:\\test";
my $mvError = "";
MoveFileEx( $source, $destination, MOVEFILE_REPLACE_EXISTING() )
or die "Can't move $source to $destination: ",fileLastError(),"\n";
I get the following error:
Can't move c:\temp\source to c:\test\: Access is denied
Any ideas?
When I try: MoveFile( $source, $destination )
I get an error stating that the file already exists