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." <(E-Mail Removed)> wrote in message
news:EBCABAB7-D3D3-4B5E-BD21-(E-Mail Removed)...
> 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?
|