Re: Listing partitions (on win32)

2006-01-15 Thread Bengt Richter
On Sun, 15 Jan 2006 08:08:16 -0500, "Roger Upole" <[EMAIL PROTECTED]> wrote: > >"Bengt Richter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> On 14 Jan 2006 16:52:33 -0800, "Claude Henchoz" <[EMAIL PROTECTED]> wrote: >> >>>Hi >>> >>>Is there any way of listing partitions on a (win

Re: Listing partitions (on win32)

2006-01-15 Thread Claude Henchoz
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 pr

Re: Listing partitions (on win32)

2006-01-15 Thread Roger Upole
"Bengt Richter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 14 Jan 2006 16:52:33 -0800, "Claude Henchoz" <[EMAIL PROTECTED]> wrote: > >>Hi >> >>Is there any way of listing partitions on a (win32) computer without >>using WMI? >> > Maybe this will work (I skipped A: and B:, but

Re: Listing partitions (on win32)

2006-01-15 Thread Roger Upole
"Claude Henchoz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > Is there any way of listing partitions on a (win32) computer without > using WMI? > > Cheers, Claude > Using win32file.DeviceIOControl with IOCTL_DISK_GET_DRIVE_LAYOUT as the control code should be able to retri

Re: Listing partitions (on win32)

2006-01-15 Thread Tim Golden
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 info

Why/Why not WMI [was: Listing partitions (on win32)]

2006-01-15 Thread Tim Golden
[EMAIL PROTECTED] wrote: > Tim Golden wrote: >> [EMAIL PROTECTED] wrote: >>> Tim Golden wrote: Claude Henchoz wrote: > Is there any way of listing partitions on a (win32) computer without > using WMI? Not that this answers your question, but why _don't_ you want to use W

Re: Listing partitions (on win32)

2006-01-15 Thread bonono
Tim Golden wrote: > [EMAIL PROTECTED] wrote: > > Tim Golden wrote: > > > Claude Henchoz wrote: > > > > > > > Is there any way of listing partitions on a (win32) computer without > > > > using WMI? > > > > > > Not that this answers your question, but why _don't_ you > > > want to use WMI? > > > > >

Re: Listing partitions (on win32)

2006-01-15 Thread Tim Golden
[EMAIL PROTECTED] wrote: > Tim Golden wrote: > > Claude Henchoz wrote: > > > > > Is there any way of listing partitions on a (win32) computer without > > > using WMI? > > > > Not that this answers your question, but why _don't_ you > > want to use WMI? > > > > TJG > > >>> import wmi > > Traceback (

Re: Listing partitions (on win32)

2006-01-15 Thread bonono
Tim Golden wrote: > Claude Henchoz wrote: > > > Is there any way of listing partitions on a (win32) computer without > > using WMI? > > Not that this answers your question, but why _don't_ you > want to use WMI? > > TJG >>> import wmi Traceback (most recent call last): File "", line 1, in -top

Re: Listing partitions (on win32)

2006-01-15 Thread Tim Golden
Claude Henchoz wrote: > Is there any way of listing partitions on a (win32) computer without > using WMI? Not that this answers your question, but why _don't_ you want to use WMI? TJG -- http://mail.python.org/mailman/listinfo/python-list

Re: Listing partitions (on win32)

2006-01-15 Thread Bengt Richter
On 14 Jan 2006 16:52:33 -0800, "Claude Henchoz" <[EMAIL PROTECTED]> wrote: >Hi > >Is there any way of listing partitions on a (win32) computer without >using WMI? > Maybe this will work (I skipped A: and B:, but you can include them if you want to catch floppy drives with something in them). The '

Listing partitions (on win32)

2006-01-14 Thread Claude Henchoz
Hi Is there any way of listing partitions on a (win32) computer without using WMI? Cheers, Claude -- http://mail.python.org/mailman/listinfo/python-list