April 13, 200521 yr 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
April 13, 200521 yr 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.
April 13, 200521 yr 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"
April 24, 200521 yr 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"
April 24, 200521 yr Gosh danggit. Forgot about the label command.Thanks<{POST_SNAPBACK}>...been not using DOS for some time now... same here
Create an account or sign in to comment