> > I like to copy a file from server1 to server2.
> > Codesnippet:
> > 
> > use File::Copy;
> > $localpath = "d:/test";
> > $uncpath = "//server2/d/test";
> > copy ("$localpath/test.txt","$uncpath/test_cp.txt");
> > 
> > If i execute the script from the comandline it works well.
> > If i execute the script from a browser no file is copied,
> > allthough i log on with the admin account on the local
> > server.
> > 
> > Has anyone an idea why this happens and how to resolve
> > the problem?
> > 
> 
> try $uncpath = "//server2/d\$/test";
> or the way I like it "\\\\server2\\d\$\\test";
> 
> 

Problem solved. It is the kind of authentication i used
in IIS5. While the copy command does not work in "integrated
NT authentication" mode it works well with "basic authentication".

Regards

Michael
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to