1 | initial version |
As I posted on Discord, ...
If you know the process ID of the running dumpcap
instance, then you can use something like TASKKILL /F /PID %DUMPCAP_PID%
; otherwise if you know you're only going to have a single instance running, you might be able to just get away with TASKKILL /F /IM DUMPCAP.EXE
.
You may also want to take a look at the dumpcap.bat
file I wrote and made available at https://gitlab.com/wireshark/wireshark/-/wikis/Tools#scripts, as this batch file uses this exact method to kill dumpcap
. Note that the batch file might not actually work anymore with the latest version of dumpcap
since I wrote it so long ago and it's not something I actually use myself.