Re: listing computer hard drives with python

2008-05-06 Thread Tim Golden
Ohad Frand wrote: I am looking for a way to get a list of all active logical hard drives of the computer (["c:","d:"..]) You can do this with WMI [*] under Windows: import wmi c = wmi.WMI () for i in c.Win32_LogicalDisk (): print i.Caption If you want only fixed disks (ie exluding externa

Re: listing computer hard drives with python

2008-05-05 Thread python newbie
Sorry, I forgot to copy the list. Looks like you are doing this on Windows. Windows has a built in command call fsutil that would work in this situation. The syntax would be: C:\Documents and Settings\username>fsutil fsinfo drives Drives: C:\ D:\ E:\ To find out the type of drive you can use

listing computer hard drives with python

2008-05-05 Thread Ohad Frand
Hi I am looking for a way to get a list of all active logical hard drives of the computer (["c:","d:"..]) Thanks, Ohad -- http://mail.python.org/mailman/listinfo/python-list