Bob Greschke wrote:
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?

A couple of options to get the ball rolling:

1) win32api.GetLogicalDriveStrings()

2) http://timgolden.me.uk/python/wmi_cookbook.html#find-drive-types


TJG
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to