I mean it is obvious that going through a FOR /F loop in batch should eat some time, but while 7-zip (as expected
) is prolly faster than both EXPAND and CABARC, when using the wildcard specification, it is greatly slower through the loop.
This should mean that *somehow* 7-zip is very "slow" at initializing or that cabarc (that you have necessarily timed only in the FOR loop) is d@mn fast at it.
Which version of cabarc.exe did you test ?
There could be some differences, I have an oldish:
Microsoft ® Cabinet Tool - Version 1.00.0601 (03/18/97) <- 114.688 byte
Microsoft ® Cabinet Tool - Version 5.00.2134.1 <- 65.808 byte
Microsoft ® Cabinet Tool - Version 5.1.2600.0 <- 62.976 byte
Same goes for Expand.exe and for 7-zip (actually I think there are probably more versions of it that stars in the sky)
But can you try also 7za.exe?
I suspect that the extra time is because 7z is not "standalone" whilost 7za is
BTW (and as a side note) 7zip may have (actually has) issues with CASE of filenames.