How to change the label of network drive?

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?
 
M

Mark V

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.
 
M

Matthias Tacke

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
 
H

Heelen Diyond

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
 
W

wazzie

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
 
D

Dave Patrick

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
|
 

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