recommend using a module rather than shelling out to add the
share. It is usually easier to check for mistakes and/or troubleshoot.
-Original Message-
From: King, Jason G [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 6:05 PM
To: Perl Win32 Admin Messages
Subject: RE: Login to peer
John writes ..
>If the machines are not on the domain, you will have to log in
>first. Let us assume there is no shares but you need access to
>files in various directories. You need to tell the machine who
>you are first by doing this:
>net use \\frank\c$ /User:frank\Administrator
>
>It will t
You can so this from a batch file just as easily as from perl.
If you are copying files from a share and all the machines are on the same domain, you
don't need to log it. If the machine's name is frank and the share is bob, they the
syntax is:
xcopy *.* \\frank\bob.
If the machines are not on
The easiest way I know is to use the MapNetworkDrive method from
Windows Script Host:
http://msdn.microsoft.com/library/en-us/script56/html/wsmthmapnetworkdrive.asp
Below is a sample Perl script which invokes this method. (I have sent
this here before, but it is short so what the heck.) You i
Check out the Win32::FileOp module. You can use it to map a drive. I
believe you can find it at jenda's repository.
http://jenda.krynicky.cz/perl
-Original Message-
From: Valerie Kramer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 12:27 PM
To: Perl Win32 Admin Messages
Su