# Revision history [back]

### tshark syntax error

I am working on an assignment and having trouble with the syntax. Below is the prompt and command I am using. I had to map to tshark then add the command.

C:\Windows\system32>"c:\Program Files\Wireshark\tshark" -x -n SYNscan.txt

Below is the error

Capturing on 'Npcap Loopback Adapter' tshark: Invalid capture filter "SYNscan.txt" for interface 'Npcap Loopback Adapter'.

That string isn't a valid capture filter (syntax error in filter expression). See the User's Guide for a description of the capture filter syntax. 0 packets captured

 2 None grahamb 21864 ●4 ●359 ●221 https://www.wireshark.org

### tshark syntax error

I am working on an assignment and having trouble with the syntax. Below is the prompt and command I am using. I had to map to tshark then add the command.

C:\Windows\system32>"c:\Program Files\Wireshark\tshark" -x -n SYNscan.txtSYNscan.txt


Below is the error

Capturing on 'Npcap Loopback Adapter'