Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Call exe in batch, exe has plastic return value (indefinite); How to make batch process think that any return value of exe is 0?
Call exe in batch, exe has plastic return value (indefinite); How to make batch process think that any return value of exe is 0?
@echo? leave

For what? /f? " delims= "? %%i? Are you online? (' dir/b? *.bat^|find? /c? /v? ".*"')? Do what? Settings? n=%%i

Echo? %n%

What if? %n%? gtr? 0? Settings? n= 1

Echo? Reset to? %n% The command of this example is to count the number of bat files in this folder.

Directory /b *. txt | find/c/v "。 The "*" enclosed in single quotation marks can be replaced by your command.