
bradleyb
Deleted
Mar 9, 2000, 3:19 PM
Post #5 of 5
(14043 views)
|
The following gets to the AddConnection function but fails everytime. The net resource information is correct and I use valid User and Password values. Any ideas please? Brad use CGI; print "Content-type: text/html\n\n"; print "<HTML>\n"; print "<HEAD>\n"; print "<TITLE>Adminsitrator LOG Search v0.001a 000226</TITLE>\n"; print "</HEAD>\n"; use Win32::NetResource; %NetResource = ( LocalName => "R:", RemoteName => "\\\\wldgrp\\wss2g1" ); print "STEP 1<br>"; $User = ""; $Password = ""; print "STEP 2<br>"; if( Win32::NetResource::AddConnection(\%NetResource, $Password, $User, 1 )) { print "Successful!<br>"; } else { print "Not Successful<br>"; }
|