supplierdeeply

get_alt_mode (was Re: Multi-camera setup project.)

  • 12 Replies
  • 579 Views
Re: get_alt_mode (was Re: Multi-camera setup project.)
« Reply #10 on: 19 / March / 2017, 08:15:15 »
Advertisements
Although not a CHDK question this is related to my ongoing multicam project.
 
 Using AutoIt I need to briefly disconnect all usb devices. The last item on this link suggests a way of doing it :-
 
 http://stackoverflow.com/questions/404097/power-off-an-usb-device-in-software-on-windows
 
 There is an associated C# programme :-
 
 https://github.com/idmadj/handsoff/blob/master/DisableHardware.cs
 
 I don't know anything about C# so on Windows 7 tried this :-
 
 csc /out:disable_hub.exe  Disablehardware.cs
 
 It fails because there is no static Main().
 
 How do I compile this and is any other code required ?
 
 Thanks.

Re: get_alt_mode (was Re: Multi-camera setup project.)
« Reply #11 on: 19 / March / 2017, 20:02:17 »
Although not a CHDK question this is related to my ongoing multicam project.
Using AutoIt I need to briefly disconnect all usb devices............

Nirsoft Usb_Devices_View Ref:- http://www.nirsoft.net/utils/usb_devices_view.html

Versions History • Version 2.62
◦ Added /RunAsAdmin command-line option.
You can use it with other command-line options of actions that require elevation ( /remove, /disable , /enable , /disable_enable ),
for example:_
 USBDeview.exe /RunAsAdmin /disable "USB\Vid_1058&Pid_1023\8539583490834690"

H-H


Re: get_alt_mode (was Re: Multi-camera setup project.)
« Reply #12 on: 20 / March / 2017, 06:50:42 »
Nirsoft Usb_Devices_View Ref:- http://www.nirsoft.net/utils/usb_devices_view.html

Versions History • Version 2.62
◦ Added /RunAsAdmin command-line option.
You can use it with other command-line options of actions that require elevation ( /remove, /disable , /enable , /disable_enable ),
for example:_
 USBDeview.exe /RunAsAdmin /disable "USB\Vid_1058&Pid_1023\8539583490834690"

H-H

Appreciate that H-H.

Good grief, after having recently written this:

I just read that USBDeview has "all kinds of snazzy, user-callable command line capabilities as well as the basic GUI"  - hadn't realised that...potentially useful for further (e.g. AutoIt) automatic analysis.
I can't now imagine why I didn't pick up on that  :-[