The Win32::NetResource Module will let you mount remote share <snip> use Win32::NetResource; use strict; use warnings;
my $RemoteShare = { 'LocalName' => "Q:", 'RemoteName' => "\\\\server\\share", }; my $UserName = "user"; my $Password = "password"; my $Connection = 1; my $ErrorCode; Win32::NetResource::AddConnection($RemoteShare,$Password,$UserName,$Connecti on) or die "unable to add share"; Win32::NetResource::GetError( $ErrorCode ); print $ErrorCode; </snip> > -----Original Message----- > From: Joe Mecklin [mailto:[EMAIL PROTECTED]] > Sent: 17 February 2003 13:07 > To: [EMAIL PROTECTED] > Subject: substitute for NTs "net use" > > > I tried sending this last week and never saw it or any > response to it on the list, > so I'll try again: > > > I'm tying to write a script which will connect to all PCs in > an internal > network to update select files. I currently have it working using > > system("net use ...") > > but I would like to use whatever module will replicate that > connection/login/logout functionality; can anyone tell me which > module(s) will allow me to do this? Currently I have to run this from > an NT box but would like to be able to move it to a Linux > server we are > turning up so it will be available to anyone with permission > to perform > this function w/o having to install Perl and this script on computers > that would not otherwise need either.. > > TIA, > Joe > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > The information contained in this e-mail is intended only for the individual or entity to whom it is addressed. Its contents (including any attachments) are confidential and may contain privileged information. If you are not an intended recipient you must not use, disclose, disseminate, copy or print its contents. If you receive this email in error, please delete and destroy the message and notify the sender by reply email. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]