@TC
Hmm... I was wondering while there was differences in style between hfcleanup and the other parts of the script.
Anyway, this exaple simply demonstrates how the script in hfcleanup takes at least the dots in every search string as wildcard characters, and that it does possibly filter out more lines than it should.
The following change is suggested here, and the similiar places:
FINDSTR /V /B /I [color="#FF0000"]/L [/color]/G:WORK\HFCU\FILTER.TXT SOURCESS\I386\TXTSETUP.SIF >TXTSETUP.SIF
I would even suggest changes troughout the script, to clarify up these things:
- if wildcard searches are needed, use RegEx with /R switch
- else use /L or /C: switches to make sure no wildcard searches occur.
If anyone in doubt here is what I'm talking about:
ECHO Filtering TXTSETUP.SIF ... this might take a few seconds
Everyone who have ever run hfcleanup knows this line well. And it's true it really takes 10-20 second to process txtsetup. It's because it takes lot more processing power to make a wildcard search than a literal! After applying the /L switch hfcleanup filters txtsetup.sif like a flash. So I suggest removing that comment too
EDIT: I haven't tested the differences in results... it depends on the exact searching pattern, and the strings searched for, but at least the possibility is there to be determining
This post has been edited by whitehorses: 04 February 2007 - 06:39 AM