[python-win32] USB Insertion Extrinsic Event exists?

2010-02-11 Thread Chris Jesse
Hi All, I currently have a little program which looks for new USB removable media to be inserted into a PC. It does so by polling (every 5 seconds) all the drives within Win32_DiskDrive() and queries to find the ones which PNPDeviceID has 'USBSTOR' within them and establishes that they are

Re: [python-win32] USB Insertion Extrinsic Event exists?

2010-02-11 Thread Mark Hammond
The pywin32 demo in win32/Demos/win32gui_devicenotify.py should get you on the right track. HTH, Mark On 12/02/2010 5:18 AM, Chris Jesse wrote: Hi All, I currently have a little program which looks for new USB removable media to be inserted into a PC. It does so by polling (every 5 seconds)

[python-win32] permissions error

2010-02-11 Thread Jeff Peery
Hello, I'm running on vista and I'm getting a permissions error from win32com. I attached a print screen displaying the error message. It appears win32com is trying to write a file and vista UAC is blocking it. Why is win32com trying to do this and how do I fix it? the only method I am using