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

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 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 pyshell#0, line 1, in -toplevel

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 (most recent call last

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? TJG import wmi

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 WMI? TJG import wmi

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

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 retrieve

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 you can include

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

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 (win32) computer without using

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