Getting an overview if all available driveletters on NT
effbot at telia.com
Tue Apr 11 16:30:18 CEST 2000
Pieter Claerhout <PClaerhout at CREO.BE> wrote:
> is there a module in Python, which can list all available driveletters,
> their label. I'm using Windows NT? I already thought of iterating over all
> driveletters, and see if the path exists or not, but I also want to
> network volumes from the other volumes. Any ideas?
just guessing here (don't have win32api on this box),
but this might do the trick:
type = win32api.GetDriveType("%s:\\" % drive)
where drive is 'A' through 'Z'.
More information about the Python-list