change disk labels

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

Mike

How do I change the label on the disks in My Computer.

For example: I want the C: drive to have the Computer name. Prefferable
not a fqdn. I want mapped network drives to have a specific name also.
 
Mike said:
How do I change the label on the disks in My Computer.

For example: I want the C: drive to have the Computer name. Prefferable
not a fqdn. I want mapped network drives to have a specific name also.

Hi

A VBScript that works for both local and network drives:

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

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

Back
Top