Wireshark-users: Re: [Wireshark-users] merging many files using mergecap
From: Bill Meier <wmeier@xxxxxxxxxxx>
Date: Mon, 22 Feb 2010 14:39:53 -0500
Boonie wrote:
----- Original Message ----- From: "Bill Meier" <wmeier@xxxxxxxxxxx>
To: "Community support list for Wireshark" <wireshark-users@xxxxxxxxxxxxx>
Sent: Sunday, February 21, 2010 11:12 PM
Subject: Re: [Wireshark-users] merging many files using mergecap


Bill Meier wrote:

I've committed the change in SVN #31943. It builds AOK in my environment
and presumably will do so in the Buildbot environment.


I've tested "wireshark-win32-1.3.4-SVN-31944.exe" which works like expected.

Issue is fixed. No point in sending in a bug report. Right?

Great job. Thanks.

The batch file is not working as expected. I'll paste te result below.

Regards,

Dave


---------------------------------------------
c:\download>merge

c:\download>setlocal

c:\download>set foo=

c:\download>for %f in (*.pcap) do set foo=!foo! %f

c:\download>set foo=!foo! test_00001_20100222194750.pcap

c:\download>set foo=!foo! test_00002_20100222194751.pcap

c:\download>set foo=!foo! test_00003_20100222194751.pcap

c:\download>set foo=!foo! test_00004_20100222194752.pcap

c:\download>set foo=!foo! test_00005_20100222194753.pcap

c:\download>"c:\Program Files\Wireshark\mergecap.exe" -w all.pcap !foo! test_00005_20100222194753.pc
mergecap: Can't open !foo!: No such file or directory
--------------------------------------------------------



Did you do the bit about invoking cmd with "delayed expansion" enabled
(ie: cmd /v:on) ??