Rename a Network Drive

D

Dave

I have searched the internet and can find nothing on this. Is it possible
for me to rename Network Drives. Currently the Network Drives show up as
something like
"\\uspswcsf0plt01\sbcs\area_backup\45986\PhoneDirectory\903\Shelting\North\
On (N:\)", I have about 6 of these such drives, isn't it possible to rename
it to somethime line "North_Residents (N:\)".

This would be much better to look at and much easier to discern between
them.

"North_Residents (N:\)"
"South_Residents (S:\)"
"East_Residents (E:\)"
"West_Residents (W:\)"

"\\uspswcsf0plt01\sbcs\area_backup\45986\PhoneDirectory\903\Shelting\North\
On (N:\)",
"\\uspswcsf0plt01\sbcs\area_backup\45986\PhoneDirectory\903\Shelting\South\
On (S:\)",
"\\uspswcsf0plt01\sbcs\area_backup\45986\PhoneDirectory\903\Shelting\East\
On (E:\)",
"\\uspswcsf0plt01\sbcs\area_backup\45986\PhoneDirectory\903\Shelting\West\
On (W:\)",

Any Help On This Would Be Greatly Appreciated,

Dave Marden
 
M

Matthias Tacke

Dave said:
I have searched the internet and can find nothing on this. Is it
possible for me to rename Network Drives. Currently the Network Drives
show up as something like
"\\uspswcsf0plt01\sbcs\area_backup\45986\PhoneDirectory\903\Shelting\North\
On (N:\)", I have about 6 of these such drives, isn't it possible to
rename it to somethime line "North_Residents (N:\)".
Hi Dave,

save this and execute with

wscript.exe mapname.vbs

' MapName.vbs --------------------------------------
Set oShell = CreateObject("Shell.Application")
oShell.NameSpace("N:\").Self.Name = "North_Residents"
oShell.NameSpace("S:\").Self.Name = "South_Residents"
oShell.NameSpace("E:\").Self.Name = "East_Residents"
oShell.NameSpace("W:\").Self.Name = "West_Residents"
' MapName.vbs --------------------------------------

HTH
 
D

Dave

I have created this at work, I have put a .bat file in my startup folder,
and used the bat file to create some shares, next the .bat file runs
"wscript rename.vbs". Sometimes it works and sometimes it doesn't. When it
does work upon closing Windows Explorer the name goes back to what it was
before. I thought maybe it was because of it being /persistent but if I
manually rename the network drives this doesn't happen.

Any Ideas?
Dave Marden
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top