bear263 Posted April 13, 2005 Share Posted April 13, 2005 I know the experts here has an answer for this. I have tried searching and came up with a whole bunch of topics for "local disk" and "rename" but none that applies to my question.How in an unattend install can you rename Local Disk to whatever you want?I searched through the registry and found a key that stores this name:[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\{42a92161-6650-11d9-81bc-806d6172696f}]"BaseClass"="Drive""_LabelFromReg"="Local Disk"So I change the name and it doesn't work. Tried rebooting also.Anyone know how to do this?Thanks Link to comment Share on other sites More sharing options...
DiGGiTY Posted April 13, 2005 Share Posted April 13, 2005 use the label command...LABEL [drive:][label]LABEL [/MP] [volume] [label] drive: Specifies the drive letter of a drive. label Specifies the label of the volume. /MP Specifies that the volume should be treated as a mount point or volume name. volume Specifies the drive letter (followed by a colon), mount point, or volume name. If volume name is specified, the /MP flag is unnecessary. Link to comment Share on other sites More sharing options...
tguy Posted April 13, 2005 Share Posted April 13, 2005 You could also use vbScripting to do it like below:Set fso = CreateObject("Scripting.FileSystemObject")Set drv = fso.Drives.Item("c")drv.VolumeName = "SERVER_SYS" Link to comment Share on other sites More sharing options...
bear263 Posted April 13, 2005 Author Share Posted April 13, 2005 Gosh danggit. Forgot about the label command.Thanks Link to comment Share on other sites More sharing options...
Slip400 Posted April 24, 2005 Share Posted April 24, 2005 i rename c drive using this in my tweak .reg fileSet label for drive c:[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\C\DefaultLabel]@="Main Drive" Link to comment Share on other sites More sharing options...
buletov Posted April 24, 2005 Share Posted April 24, 2005 Gosh danggit. Forgot about the label command.Thanks<{POST_SNAPBACK}>...been not using DOS for some time now... same here Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now