1
I’m developing a GUI
in Python 3.6
using TKinter
. I have reached an impasse where I have to get the letters of the installed drivers and their names the same way they appear in Windows Explorer
. See attached figure.
With the code below I can get the driver letters, but not the names.
drives = win32api.GetLogicalDriveStrings()
drives = drives.split('\000')[:-1]
Someone’s been through this trouble?
Something like
win32api.GetVolumeInformation("C:\\")
resolves?– Woss
Anderson, "win32api.Getvolumeinformation("C: ")" only works for drive C:. Does not display other driver names.
– rbarreto
You tried to replace the driver letter in order to get the data from others, such as
win32api.GetVolumeInformation("D:\\")
? In fact, do not use the answer field for comments, for such, use the comment field (just below the question has the link comment on).– Woss
('Win7', 1087985650, 255, 65470719, 'NTFS') ('554', 4258, 255, 262382, 'NTFS') (', -790939965, 255, 13041919, 'NTFS'')
– rbarreto
@rbarreto has any doubts? One question you are Renato right?
– Guilherme Nascimento
Hello Renato and @rbarreto! If these accounts are the same please confirm here to help you join them in one. See you soon!
– Sergio
To merge the accounts contact us and make a request
– Math