"mh" <[EMAIL PROTECTED]>: >2. More importantly for those drives that exist, how do I determine if >it is actually a harddrive?
C:\>python Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import win32file,string >>> def harddisks(): ... driveletters=[] ... for drive in string.letters[len(string.letters)/2:]: ... if win32file.GetDriveType(drive+":")==win32file.DRIVE_FIXED: ... driveletters.append(drive+":") ... return driveletters ... >>> harddisks() ['C:', 'F:'] -- Thank you for observing all safety precautions -- http://mail.python.org/mailman/listinfo/python-list