Explorer volume information
-
I'm sure this is something simple that I just can't find. I am adding a list of disk drives to a combo box. I used GetLogicalDriveStrings for the list of drives and GetVolumeInformation to get the volume name. I take the volume name and combine it with the drive name so it looks just like the drive tree in explorer. My problem is when a volume does not have a label. When a volume does not have a label, Explorer substitutes a generic string like Local Disk, DVD Drive, DVD/CD-RW. Where does it get these strings? GetDriveType doesn't even have a DVD constant added yet. I don't even know what to look for on MSDN, but everything I have tried have not produced any results. Any help is appreciated!!
-
I'm sure this is something simple that I just can't find. I am adding a list of disk drives to a combo box. I used GetLogicalDriveStrings for the list of drives and GetVolumeInformation to get the volume name. I take the volume name and combine it with the drive name so it looks just like the drive tree in explorer. My problem is when a volume does not have a label. When a volume does not have a label, Explorer substitutes a generic string like Local Disk, DVD Drive, DVD/CD-RW. Where does it get these strings? GetDriveType doesn't even have a DVD constant added yet. I don't even know what to look for on MSDN, but everything I have tried have not produced any results. Any help is appreciated!!
This just a guess, but it might be from the registry. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\D\DefaultLabel changes the description in Explorer for my CD-ROM drive when there's no disk in the drive. Note the drive letter in the registry key, so you'll need to change that for other drives.
-
This just a guess, but it might be from the registry. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\D\DefaultLabel changes the description in Explorer for my CD-ROM drive when there's no disk in the drive. Note the drive letter in the registry key, so you'll need to change that for other drives.
Graham Bradshaw wrote: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\D\DefaultLabel What version of windows are you using? I'm using XP Home and that key does not exist. I tried searching for DriveIcons and DefaultLabel. Thanks for trying!
-
Graham Bradshaw wrote: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\D\DefaultLabel What version of windows are you using? I'm using XP Home and that key does not exist. I tried searching for DriveIcons and DefaultLabel. Thanks for trying!
Pheonix wrote: What version of windows are you using? XP Professional SP1. You may have to add the key - I also have an entry for the E: drive, which is a Memory Stick (the computer is a Sony VAIO laptop).
-
Graham Bradshaw wrote: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\D\DefaultLabel What version of windows are you using? I'm using XP Home and that key does not exist. I tried searching for DriveIcons and DefaultLabel. Thanks for trying!
Update: Just tried it here, and it works with a ZIP drive as well. The key quoted is the whole key. If you set the default entry for that key to a string, Explorer picks that up and uses it instead when displaying the drive.
-
Pheonix wrote: What version of windows are you using? XP Professional SP1. You may have to add the key - I also have an entry for the E: drive, which is a Memory Stick (the computer is a Sony VAIO laptop).