Search found 3 matches
- 30 Oct 2015 16:06
- Forum: DOS Batch Forum
- Topic: Start batch file, then loop to check if it's done yet
- Replies: 6
- Views: 2968
Re: Start batch file, then loop to check if it's done yet
OK, I removed the line if not errorlevel 1 goto end and just let it run. It looks like when find finds a match, the errorlevel is set to 0, not 1. And when a match is NOT found, it returns a 1. So it appears the information I found on another forum was backwards, or more likely I misread or misunder...
- 30 Oct 2015 12:09
- Forum: DOS Batch Forum
- Topic: Start batch file, then loop to check if it's done yet
- Replies: 6
- Views: 2968
Re: Start batch file, then loop to check if it's done yet
My understanding is that the "find" command will return an errorlevel of 0 for "not found" and 1 for "found". So that line is supposed to see if the errorlevel is something other than 1 and if so, jump to :end, since that should mean that the process I'm trying to find ...
- 30 Oct 2015 11:16
- Forum: DOS Batch Forum
- Topic: Start batch file, then loop to check if it's done yet
- Replies: 6
- Views: 2968
Start batch file, then loop to check if it's done yet
Not sure what I'm doing wrong here. From all the stuff I've found googling, this should work, but it doesn't. I'm sure someone here can show me what I've done wrong. This is a test to make sure my code works, before I implement the same concepts in production. infinite_test.bat is just a test batch ...