[python-win32] Re: List of drives / removable drives

Roger Upole rwupole at msn.com
Wed Dec 20 23:02:25 CET 2006


Tony Cappellini wrote:
> Is there a way to differentiate between floppy, network, hard drive,
> removable (aka USB flash) drives? though Pythonwin?
> 
> My searches came up with Tim Golden's mapped drives, which is somewhat
> helpful, but not particular to my needs.
> http://tgolden.sc.sabren.com/python/win32_how_do_i/show_mapped_drives.html
> 
> win32api.GetVolumeInformation doesn't return anything specific- other than
> 'FAT' which is used on a floppy, but somehow
> I was expecting something a little more specific.
> 
> 
> thanks

win32file.GetDriveType will tell you this.

       Roger



More information about the Python-win32 mailing list