Joe, Thanks for the reply! 
Some clarification on what I would like to change the label -- for
example; a users home directory is now displayed as: "user on
'servername\share_name' (H:)" -- I would like to rename it to "'Home
Directory' (H:)"

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joe Pochedley
Sent: Tuesday, March 25, 2003 5:08 PM
To: NT 2000 Discussions
Subject: RE: VBScript to rename network drives

What do you mean by "renaming"?  Do you want to rename the share on the
server, or do you mean remapping (change the drive letter a share is
mapped
to)?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script5
6/ht
ml/wsmthmapnetworkdrive.asp
(link is undoubtedly going to wrap)

>From the page above:

Dim WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "E:", "\\Server\Public"

Then use:

WshNetwork.RemoveNetworkDrive "E:"

to remove a drive (follow the RemoveNetworkDrive method link on the page
above for the options).

Joe Pochedley
If you have time to do it twice, 
you had time to do it right in
the first place.


-----Original Message-----
From: Jason Tolentino [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 25, 2003 4:29 PM
To: NT 2000 Discussions
Subject: VBScript to rename network drives


Does anyone have any resources on renaming Mapped network drives with
VBScript????
Thank you for any information,
J Tolentino


------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to %%email.unsub%%

------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to %%email.unsub%%


------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to