> > 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";
>
>
I tried this as well without any effort. Just for a test
i used Win32::CopyFile but got the same result. If i
use the script on the comand line it works. As soon as i
execute it in a browser i get "Permission denied" in $! and
Error number 5 in Win32::GetLastError().
This is very strange because i setup a test environment with
two servers both have the same admin account and the drive shares
have full permission to everyone. I use NT2000 with IIS5 and
NT security to log into the website to make sure i am realy loged
in as admin. I even checked the logged in user in my script
and it shows what i expected. Last but not least "server2" even
does not show any errors in the eventlog for security if i
watch for any activity.
Did anyone ever run into the same problem?
Regards
Michael
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin