I am developing GUI
in Python 3.6
using TKinter
. I came to an impasse where I have to get the installed driver letters and their names in the same way they appear in Windows Explorer
. See attached picture.
With the code below I can get the letters of the drivers, but not the names.
drives = win32api.GetLogicalDriveStrings()
drives = drives.split('drives = win32api.GetLogicalDriveStrings()
drives = drives.split('%pre%0')[:-1]
0')[:-1]
Has anyone ever had this problem?