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

I have windows xp;

I have this error;

The temporary file to which the capture would be saved ("") could not be opened: No such file or directory.

how to solve?

asked 14 Sep '12, 12:52

albs's gravatar image

accept rate: 0%

edited 14 Sep '12, 12:53

Wireshark writes a temp file while capturing (to be able to recover from crashes). The path for the TEMP directory is retrieved by reading some environment variables via the glib function g_get_tmp_dir().

Cite: Gets the directory to use for temporary files. This is found from inspecting the environment variables TMPDIR, TMP, and TEMP. If none of those are defined "/tmp" is returned on UNIX and "C:\" on Windows.

So, if you defined one of these variables with an empty string, you will get that error message.

Please check those variables:

open a DOS box
Type 'set' and look for those three variables

If you see something like the output below, you will get the error message (verified on WinXP).

c:\>set | find "TMP"
c:\>set | find "TEMP"


permanent link

answered 17 Sep '12, 12:53

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 14 Sep '12, 12:52

question was seen: 6,369 times

last updated: 17 Sep '12, 12:53

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