midiboy Posted January 9, 2005 Author Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now