Networking Forums

Networking Forums > Computer Networking > Windows Networking > Shared folders

Reply
Thread Tools Display Modes

Shared folders

 
 
=?Utf-8?B?V2lsbGlhbSBDLg==?=
Guest
Posts: n/a

 
      06-11-2004, 03:36 AM
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?
 
Reply With Quote
 
 
 
 
PC
Guest
Posts: n/a

 
      06-14-2004, 10:13 AM
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?



 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing shared folders Jack Wireless Networks 3 08-29-2008 04:14 PM
Shared Folders John Wireless Networks 1 01-28-2007 03:57 PM
Shared Folders mcp6453 Windows Networking 3 02-06-2005 02:06 AM
Shared folders old guy Wireless Networks 3 02-03-2005 10:26 PM
Shared Folders Denis Windows Networking 0 09-23-2003 11:30 PM



1 2 3 4 5 6 7 8 9 10 11