Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to make a Windows batch script for tshark.

here is the tshark command I use

tshark -V -r file.pcap -T fields -E header=y -E separator=% -e wlan.sa -e ip.src -e wlan.da -e ip.dst > file.csv

I want to create a batch file to ask where the folder is for the pcap, what the name of the pcap is and where to write the csv file.

share|improve this question

1 Answer 1

Use set /p to prompt the user for input.

set /p folder=Folder:
set /p capname=Pcap file:
set /p csvname=CSV file:

tshark -V -r "%folder%\%capname%" ... > "%folder%\%csvname%"
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.