This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to Redirect USBPcapCmd.exe “USB interfaces list” output to a text file.

0

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.

Thanks, Pramod

asked 09 May '17, 03:24

Pramod's gravatar image

Pramod
11448
accept rate: 0%

edited 30 May '17, 22:03


2 Answers:

2

You can use the following command:

USBPcapCMD.exe --extcap-interfaces > interfaces.txt

answered 31 May '17, 10:53

Pascal%20Quantin's gravatar image

Pascal Quantin
5.5k1060
accept rate: 30%

Thanks for ur reply. Is there any way we can redirect all output to a text file. I need to redirect all interface details which is in below image.

alt text

(31 May '17, 22:54) Pramod

1

I don't think you can, the program doesn't have an option to list the interfaces and if you don't provide any options it assumes interactive mode in a new console window.

As it's not part of the Wireshark project you'll either need to modify the code yourself, or file an issue over at the USBPcap site.

answered 31 May '17, 03:25

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

@grahamb, thanks for ur replay. I will report the issue in USBPcap site.

(31 May '17, 07:24) Pramod