bear263 Posted April 13, 2005 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
DiGGiTY Posted April 13, 2005 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.
tguy Posted April 13, 2005 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"
bear263 Posted April 13, 2005 Author Posted April 13, 2005 Gosh danggit. Forgot about the label command.Thanks
Slip400 Posted April 24, 2005 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"
buletov Posted April 24, 2005 Posted April 24, 2005 Gosh danggit. Forgot about the label command.Thanks<{POST_SNAPBACK}>...been not using DOS for some time now... same here
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now