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
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
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