Search the Community
Showing results for tags 'DriveGetLabel'.
Found 2 results
ALTIN posted a topic in AutoIt General Help and Supporthey folks, I'm having an issue with DriveGetLabel on Windows7. It used to work before but since at least 2-3 weeks it doesn't work anymore. It simply returns blank, nothing. Even using this code from examples it doesn't work: Local $sLabel = DriveGetLabel(@HomeDrive & "\") ; Find the volume label of the home drive, generally this is the C:\ drive. MsgBox(4096, "Volume Label: ", $sLabel) anyone can point to a potential solution to this?
I'm running Windows 7. I have an autorun.inf file on a removable drive that looks like this: [autorun] label=My Drive Label When I plug in that USB drive and open Windows Explorer, I see that drive properly labeled. It says "My Drive Label (G:)" next to the drive icon. However, I can't figure out how to read that label (without reading the ini file, of course). If I use DriveGetLabel("G:"), it returns the string that is stored when you right-click the drive and select properties and type in a label. I can't figure out how to make it return the label that is displayed in Windows Explorer. Any ideas?