Listing partitions (on win32)

Claude Henchoz claude.henchoz at
Sun Jan 15 14:48:57 CET 2006

Why I don't want to rely on WMI:
I am wanting to use this under Windows PE, and although I can include
WMI, I just wanted to find out whether there is a way to not use it.

Another thing:
I really do want to also get the partitions that do _not_ have an
associated drive letter.

All in all:
I am probably going to have to write something with tempfile that uses
diskpart.exe to use this. Although this will get ugly, it seems to be
the best way (the best way without WMI, that is).

Thanks for the help guys!

Cheers, Claude

More information about the Python-list mailing list