How can I disable a device in windows using python

Phoe6 orsenthil at gmail.com
Wed Feb 28 03:32:53 EST 2007


On Feb 27, 2:21 pm, Duncan Booth <duncan.bo... at invalid.invalid> wrote:

> > Hi all,
> > I am trying to disable it programmatic using python. I checked python
> > wmi and i could not find ways to disable/enable, (listing is however,
> > possible).
>
> > Where should I look for to enable/disable devices in python.
>
> Assuming you mean windows:
>
> If you don't mind doing it by spawning an external program try
> downloading devcon.exe from Microsoft's website
> (http://support.microsoft.com/kb/311272).

Thanks for the reply, this is very helpful.

Thanks,
Senthil




More information about the Python-list mailing list