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

How can I set the path setting for the preferences file on tshark as can be done with the -P wireshark flag ? I want to be able to specify on a tshark command line which preferences file to use.

asked 01 Aug '13, 07:00

DarrylHymel's gravatar image

DarrylHymel
11112
accept rate: 0%


How can I set the path setting for the preferences file on tshark as can be done with the -P wireshark flag ?

You cannot, as that functionality is not implemented in tshark. If you want to have that functionality, please file an enhancement request.

http://wiki.wireshark.org/ReportingBugs

In the meantime, you can only copy the personal profile directories from your personal path to the global profile directory of the user (%APPDATA%\Wireshark\profiles) and then select that profile with tshark option -C. However, that will only affect the profiles, not the preferences :-(

Or you create several batch files (as I did) for this purpose and you switch everything you need with those batch files, by copying everything to the user Wireshark directory, or by creating a junction (see mklink on Windows) for the global preferences directory (%APPDATA%\Wireshark).

rmdir %APPDATA%\Wireshark
mklink c:\wireshark\template_1 %APPDATA%\Wireshark

while c:\wireshark\template_1 contains your preferences, profiles, etc.

Regards
Kurt

permanent link

answered 08 Aug '13, 07:02

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×39

question asked: 01 Aug '13, 07:00

question was seen: 1,860 times

last updated: 08 Aug '13, 07:02

p​o​w​e​r​e​d by O​S​Q​A