Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.