Is there any way to customize the drive names when i map , i mean i have
vbscript as follows
Dim objNet

Set objNet = CreateObject("Wscript.Network")

objNet.MapNetworkDrive "H:", \\main\share
WSCript.Quit


this creats a Network Drive called share on 'main' drive letter H i want it
to look like Managment, Sales or things like that ?

is it possible ?


thanks

Re: map drive names ? by Torgeir

Torgeir
Tue Apr 05 10:54:29 CDT 2005

Stingray wrote:

> Is there any way to customize the drive names when i map , i mean i have
> vbscript as follows
> Dim objNet
>
> Set objNet = CreateObject("Wscript.Network")
>
> objNet.MapNetworkDrive "H:", \\main\share
> WSCript.Quit
>
>
> this creats a Network Drive called share on 'main' drive letter H i want it
> to look like Managment, Sales or things like that ?
Hi

A VBScript that works for both local and network drives:

sDrive = "I:\" ' note the trailing backslash!
Set oShellApp = CreateObject("Shell.Application")
oShellApp.NameSpace(sDrive).Self.Name = "Some description here"



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx