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

On windows xp, error of temporary file

0

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


One Answer:

0

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

answered 17 Sep '12, 12:53

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%