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

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

albs
1223
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"
TMP=""
TMPDIR=""
c:\>set | find "TEMP"
TEMP=""

Regards
Kurt

permanent link

answered 17 Sep '12, 12:53

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:

×254
×193
×10

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