First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

capinfos not working on Windows

I'm trying to complete a lab for college regarding CLI commands for Wireshark. However, capinfos, which is required for the lab, refuses to run, with Windows stating that " 'capinfos' is not recognized as an internal or external command, operable program, or batch file ". I've reinstalled Wireshark twice now, making sure that TShark was installed as well for good measure, but to no avail. Am I better off using a Linux VM to complete this, or is the problem an easy one to fix? Thank you.

GenowJ24's avatar
1
GenowJ24
asked 2021-03-25 17:10:55 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

1

Does your lab have a setup section that mentions adding the Wireshark executable directory to the path or using fully qualified (absolute) path names to the executables?

15157: Should our installer set the Path environment variable on Windows?

Chuckc's avatar
3k
Chuckc
answered 2021-03-25 17:21:03 +0000, updated 2021-03-25 17:29:27 +0000
edit flag offensive 0 remove flag delete link

Comments

It does not, despite my textbook telling me that it does. How would I go about doing that, if I may ask?

GenowJ24's avatar GenowJ24 (2021-03-25 19:53:29 +0000) edit
add a comment see more comments
0

I know this was originally posted in 2021, however, I needed to know how to do this today, in 2024. Here's how I did it: How to add the Wireshark Program Directory to Your Path

Open Wireshark > click Help > About Wireshark > Folders

Locate the "Program" location path and copy it

click Windows Start button and type "env"

click on Edit the system environment variables

on the bottom right corner click Environment Variables

Under System variables click on Path > Edit

in the window that opens click New

in the field that generates paste the program location path you copied from Wireshark.

After all this, close your command prompt and reopen. You should now be able to run the capinfos command.

ljimenez14's avatar
1
ljimenez14
answered 2024-04-29 05:37:03 +0000
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer