Listing partitions (on win32)
Tim Golden
news at timgolden.me.uk
Sun Jan 15 05:59:42 EST 2006
Claude Henchoz wrote:
> Hi
>
> Is there any way of listing partitions on a (win32) computer without
> using WMI?
It looks as though XP has a command-line utility
called diskpart.exe which should be able to do
this kind of thing. I've no experience with it
myself, but assuming that it outputs information
to screen, it should be easy to pull that back
into Python with os.popen or the subprocess module.
TJG
More information about the Python-list
mailing list