Search found 2 matches

by Threep
04 Feb 2010 07:39
Forum: DOS Batch Forum
Topic: Create a batch to loop through files, run command & move
Replies: 3
Views: 6988

Re: Create a batch to loop through files, run command & move

Thanks, I got it working. The problem was that I didn't realize that the for loop was being run as one line, so the errorlevel wasn't set properly as a result because I checked it before it got a chance to get set. Using the subs fixed it.
by Threep
03 Feb 2010 14:32
Forum: DOS Batch Forum
Topic: Create a batch to loop through files, run command & move
Replies: 3
Views: 6988

Create a batch to loop through files, run command & move

Hello, I'm trying to create what should be a simple batch file, but I'm having a really hard time, any help would be appreciated. Basically what I want the batch file to do is loop through all .mib files in a directory, then run a command "mcompile" on each of the files. If mcompile passes...