2008/7/16 Neven Goršić <[EMAIL PROTECTED]>:
> On Wed, Jul 16, 2008 at 2:02 PM, Tim Golden <[EMAIL PROTECTED]> wrote:
>> Neven Goršić wrote:
>>>
>>> Hi!
>>>
>>> I am using Python 2.5.2 on WinXP Pro and I want to detect all disk drives.
>>> I have C:, D: and E: hard disks and F: DVD ROM.
>>
>> Use WM
On Wed, Jul 16, 2008 at 2:02 PM, Tim Golden <[EMAIL PROTECTED]> wrote:
> Neven Goršić wrote:
>>
>> Hi!
>>
>> I am using Python 2.5.2 on WinXP Pro and I want to detect all disk drives.
>> I have C:, D: and E: hard disks and F: DVD ROM.
>
> Use WMI:
>
> http://timgolden.me.uk/python/wmi_cookbook.html
Neven Goršić wrote:
That is OK. But when I run program with that single command
from Windows Explorer I get Windows alert Window:
"No disk! Please insert a disk into drive F:"
That alert stops program and I must respond with: Cancel, Try again or Continue.
The alert remains even with try, excep
Neven Goršić wrote:
Hi!
I am using Python 2.5.2 on WinXP Pro and I want to detect all disk drives.
I have C:, D: and E: hard disks and F: DVD ROM.
Use WMI:
http://timgolden.me.uk/python/wmi_cookbook.html#find-drive-types
(mutatis mutandis)
When I try to use os.access method with writing c
Hi!
I am using Python 2.5.2 on WinXP Pro and I want to detect all disk drives.
I have C:, D: and E: hard disks and F: DVD ROM.
When I try to use os.access method with writing checking I get True
testing DVD ROM Drive with DVD media inside (which is not writable).
1. Why? DVD disk is not writable!