midiboy Posted January 9, 2005 Author Posted January 9, 2005 I believe the last findstr sets errorlevel to 1 if the string is found. I'm not really sure if it returns errorlevel 0,No, it returns 0 if the string is found and 1 if it is not found. That is not the problem. I can see the errorlevel when I echo it. That works properly. The problem lies within the if command.If I check for errorlevel 0 instead of 1 then it will always jump to the same branch regardless of the errorlevel. If I check for errorlevel 1 it works.Bye,Alex
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now