desowin / usbpcap

USB packet capture for Windows
http://desowin.org/usbpcap
902 stars 170 forks source link

How to Redirect USBPcapCmd.exe "USB interfaces list" output to a text file. #37

Closed pramodjnp closed 7 years ago

pramodjnp commented 7 years ago

Hi i need to redirect interface list from USBPcapcmd.exe to an text file for getting USB HUB number in command line. please help me how to achieve this, is there any way, i can get "USB interface list" to a text file.

please any one help me

Thanks in Advance!!

desowin commented 7 years ago

If you would like a easily parsable string then please take a look at extcap interface specification: https://wiki.wireshark.org/Development/Extcap#Current_flow

USBPcapCMD implements extcap interface. Examples: USBPcapCMD.exe --extcap-interfaces USBPcapCMD.exe --extcap-interface \\.\USBPcap1 --extcap-config

pramodjnp commented 7 years ago

Hi desowin, Thanks for the reply, its working for me.