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/script56/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 PROTECTED]

Reply via email to