List of disk drives on Windows?

Bob Greschke bob at passcal.nmt.edu
Tue May 20 15:18:08 EDT 2008


This MUST have been asked before, but I can't seem to Google the right 
thing.  How can I get a list of drives on a Windows box, like ["C:\", 
"D:\"], like I can if I do something like listdir("/Volumes") on a Mac?

Thanks!

Bob




More information about the Python-list mailing list