Re: Shared folders

From: PC (paulm)
Date: 06/14/04


Date: Mon, 14 Jun 2004 11:13:42 +0100

To use a dos script you could try:

net use m: \\%computername%\%Sharename% /persistant:Yes

vbs would be better though. Open notepad and type the following:

Dim WSHNetwork
Set WSHNetwork = WScript.CreateObject("WScript.Network")

WSHNetwork.MapNetworkDrive "M:" , "\\%Computername%\%Sharename%"

WshNetwork.AddWindowsPrinterConnection
"\\%Computername%\%SharedPrinterName%" (if required)

Save this files as filename.vbs

hth

"William C." <anonymous@discussions.microsoft.com> wrote in message
news:EBCABAB7-D3D3-4B5E-BD21-45249F19E926@microsoft.com...
> I had stored 10 folders in one of the server i: drive, host name FILESVR.
> For example, I want certain users to have all rights to 4 of the folders
only.
> In the login script, using "NET USE", i want to MAP a M: drive for them to
access those 4 folders when they login.
> What command line should i have in the login script?