Mailing List Archive

copy failed
Hi All



I am using apache2 on windows and when I try to do I failed



"M:" is a maped drive

When I do the same thing in perl script it works fine.







use Win32;

use File::NCopy qw(copy);

my $file = File::NCopy->new(recursive => 1,'force_write' =>1,'_debug' =>1,);



$file->copy ('C:/temp/scans/11111/front.jpg','M:/front1.jpg');







Any idea what am I doing wrong ???







Thanks
Re: copy failed [ In reply to ]
hezi wrote:
> Hi All
>
>
>
> I am using apache2 on windows and when I try to do I failed
>
>
>
> “M:” is a maped drive
>
> When I do the same thing in perl script it works fine.
>
>

What is the error, anything in $! or $@ after problem?
Any error message at all anywhere?

Common problems here include Apache executing in wrong user
account without access to M: drive, and Apache/mod_perl you
are using might be different than perl you are using at
command line.

Regards,

Josh

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org