Re: How can I enable/disable a device wtih VBScript? TIA by mr_unreliable
mr_unreliable
Tue Jun 13 17:33:03 CDT 2006
Stuffin, did you think about using shell.run to just run
devcon itself from script?
oShell.Run "%comspec% /c devcon -m:\\test find pci\* "
Otherwise, if you really, really want to get into it, try
researching the "Windows Management Instrumentation"
(a.k.a. wmi) classes. You may find what you want.
Start with the win32_DeviceSettings class.
cheers, jw
____________________________________________________________
You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)
Stuffin wrote:
> I'm currently using DEVCON in a .BAT file to enable/disable a device at
> logon/logoff. Is there a way with VBScript to do this? TIA
>
>