I want to transform a captured sample .pcap file stored in the windows 7 desktop into a text file on windows 7 command line cmd using tshark. I tried : C:>Program Files>Wireshark> tshark -V -r C:\Users\myName\Desktop\WiresharkLog\SynFlood Sample.pcap > C:\Users\myName\Desktop\logcapture.txt When i hit enter after entering this command, the message on the command line says "access is denied." How do i make sure that i can convert a pcap file source into a text file using tshark commands on windows 7 cmd? asked 16 Apr '12, 18:16 misteryuku edited 24 Jun '12, 23:28 |
One Answer:
Your login name contains spaces, so you might have to quote it on the command line:
answered 16 Apr '12, 23:11 Guy Harris ♦♦ edited 25 Jun '12, 20:32 |
When i typed that, the windows 7 command line interface showed this message : tshark: "Sample.pcap" is neither a field or a protocol name. Is there a mistake in the command or there is another problem?
Yes. What is the pathname of the capture file? Is
C:\Users\Tok Jun Xin\Desktop\WiresharkLog\SynFlood
a directory with aSample.pcap
file in it? If so, the command you want isYeah. That is what i meant
OK, I fixed the command line in the answer to reflect the pathname of the capture file being
as, when looking at the original question, it looks as if the capture file name is
SynFlood Sample.pcap
(with a space in the name) and it's in the directoryC:\Users\Tok Jun Xin\Desktop\WiresharkLog
(with a space in the user name).