根据Errorlevel的返回值的不同,问题也就解决了,下面是经过测试正确的代码:
@echo off
SETRES h1024 v768 b32 f85
if errorlevel=1 goto 1
goto end
:1
SETRES h1024 v768 b32 f75
if errorlevel=1 goto 2
goto end
:2
SETRES h1024 v768 b24 f85
if errorlevel=1 goto 3
goto end
:3
SETRES h1024 v768 b24 f75
if errorlevel=1 goto 4
goto end
:4
SETRES h1024 v768 b24 f60
pause
:end
exit
Last edited by chujiafu on 2010-9-4 at 11:00 ]