----- Original Message ----- 
From: "webcontrol" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 16, 2001 8:46 AM
Subject: File::Copy 


> 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";


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

Reply via email to