tshark in commonline fail if the pcap file name contain spaces. example1: tshark -r d:中文 test.pcap example2: tshark -r C:Documents and SettingsAdministrator桌面test.pcap why wireshark GUI can open and disscet the file whose name contain spaces, how to solve the problem when using tshark? asked 19 Sep '11, 23:37 ylda_ljm0620 |
One Answer:
Because the Wireshark GUI, unlike the Windows cmd.exe command line and the UN*X command line, does not use spaces as command-line token separators. If you want to access, from the command line, a file whose name contains spaces - or any other character that's a special character to the command interpreter - you have to quote it:
This applies to all programs, not just TShark. answered 19 Sep '11, 23:50 Guy Harris ♦♦ |