Local drives on Win32 with win32api

Mark Hammond mhammond at skippinet.com.au
Wed Nov 13 17:40:04 EST 2002


Uwe Becher wrote:
> Hi.
> 
> I'm trying to get information about local drives on a win32 box. Using 
> win32api.GetLogicalDriveStrings() and win32api.GetDiskFreeSpace(drive) 
> works nearly perfect - except: I get all the network drives mapped to a 
> drive letter too!
> 
> Is there a way to get information, if a drive is local or remote?
> May be I missed the point reading the documentation.
> 

win32file.GetDriveType()

Mark.




More information about the Python-list mailing list