Wireshark mailing list archives
Re: merging many files using mergecap
From: Bill Meier <wmeier () newsguy com>
Date: Sun, 21 Feb 2010 15:30:55 -0500
Boonie wrote:
Thanks Olivier, That does the job. It took me hours with finding a sollution. Thanks a lot. This is much better than doing it by hand. If anyone can think of a way to solve this with a batch file, I'd like to hear that too.
One way: Put the following (the stuff between the ---- lines) in a batch file (Season to your taste). ------ setlocal set foo= for %%f in (*.pcap) do set foo=!foo! %%f mergecap -w all.pcap %foo% ------- (The above works if there are no spaces in the filenames. Some amount of fiddling around with quoting could probably be done to make a version with works with spaces in filenames). Run the batch file in the dir with the files to be merged ** Note** cmd.exe (the Windows command line shell) needs to be invoked with /v:on to enable "delayed environment variable expansion". See 'cmd /?' and 'set /?' for additional information on delayed environment variable expansion. ___________________________________________________________________________ Sent via: Wireshark-users mailing list <wireshark-users () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-users Unsubscribe: https://wireshark.org/mailman/options/wireshark-users mailto:wireshark-users-request () wireshark org?subject=unsubscribe
Current thread:
- Re: merging many files using mergecap, (continued)
- Re: merging many files using mergecap Boonie (Feb 21)
- Re: merging many files using mergecap Sake Blok (Feb 21)
- Re: merging many files using mergecap Guy Harris (Feb 21)
- Re: merging many files using mergecap Bill Meier (Feb 21)
- Re: merging many files using mergecap Bill Meier (Feb 21)
- Re: merging many files using mergecap Bill Meier (Feb 21)
- Re: merging many files using mergecap Boonie (Feb 22)
- Re: merging many files using mergecap Bill Meier (Feb 22)
- Re: merging many files using mergecap Boonie (Feb 22)
- Re: merging many files using mergecap Boonie (Feb 21)
- Re: merging many files using mergecap Boonie (Feb 22)
- Re: merging many files using mergecap Bill Meier (Feb 21)