How to change the label of network drive?

  • Thread starter Thread starter Heelen Diyond
  • Start date Start date
H

Heelen Diyond

How to change the label of network drive that has been mapped?

I want to do that using a command.I know that the label of network drive is
just a registry value in WinXP,but may be not in Win2000.

Any one can help?
 
In said:
How to change the label of network drive that has been mapped?

I want to do that using a command.I know that the label of
network drive is just a registry value in WinXP,but may be not
in Win2000.

Not certain I understand your use of "label" here. A Volume Label?
The local devicename of the remote resource? Clarification may help.
 
Heelen said:
How to change the label of network drive that has been mapped?

I want to do that using a command.I know that the label of network drive is
just a registry value in WinXP,but may be not in Win2000.
Try a small vb script:

Set oShell = CreateObject("Shell.Application")
oShell.NameSpace("H:\").Self.Name = "your_label"

HTH
 
Thx.
That's what i want.

Matthias Tacke said:
Try a small vb script:

Set oShell = CreateObject("Shell.Application")
oShell.NameSpace("H:\").Self.Name = "your_label"

HTH
 
Sorry to re-open this thread.

I have created some virtual drives using SUBST

I have used the same code you have provided above to label the driv
however I get a "Invalid Volume Label." message.

Can this be done on a SUBST volume?

I am using Windows 2000 Server.

Appreciate your replies.

Thank


-
wazzi
 
No one knows what you're talking about since you didn't include the text of
the thread.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|
| Sorry to re-open this thread.
|
| I have created some virtual drives using SUBST
|
| I have used the same code you have provided above to label the drive
| however I get a "Invalid Volume Label." message.
|
| Can this be done on a SUBST volume?
|
| I am using Windows 2000 Server.
|
| Appreciate your replies.
|
| Thanks
|
|
|
| --
| wazzie
| ------------------------------------------------------------------------
|
| ------------------------------------------------------------------------
| View this thread: http://www.mcse.ms/message1443160.html
|
 
Back
Top