Rename a network share or drive through a script

  • Thread starter Thread starter Mike Legge
  • Start date Start date
M

Mike Legge

Does anyone know How I can make a server/share name
automaticly rename through a script. example logon script
net use h: \\server\apps shows up in the windows explorer
as apps on 'server'(h:) I would like it to show up on the
users computer as Just H: or Apps (H:) with out the server
name if this is possible please let me know and thanks in
advance.
 
Mike said:
Does anyone know How I can make a server/share name
automaticly rename through a script. example logon script
net use h: \\server\apps shows up in the windows explorer
as apps on 'server'(h:) I would like it to show up on the
users computer as Just H: or Apps (H:) with out the server
name if this is possible please let me know and thanks in
advance.

Hi

Try this in a VBScript:

sDrive = "H:\" ' note the trailing backslash!
Set oShell = CreateObject("Shell.Application")
oShell.NameSpace(sDrive).Self.Name = "Apps"
 
Back
Top