发现 if errorlevel 1条件满足,已经exit了,但是那行echo信息没看到。。。复制代码
- call :fsizechk %appfile% %var%
- if errorlevel 1 exit 1
- :fsizechk
- if %~z1 leq %2 exit /b 0
- echo "Error: file %1 size %~z1 exceeds %2 bytes!"
- : pause
- exit /b 1
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |