China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 20:09
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » [Help] About "ERRORLEVEL" View 1,078 Replies 2
Original Poster Posted 2003-05-25 00:00 ·  中国 江苏 南京 联通
银牌会员
★★
三生缘里笑红尘
Credits 1,063
Posts 292
Joined 2003-03-09 00:00
23-year member
UID 1073
Gender Male
Status Offline
echo To confirm execution, press " Y "; to cancel the operation, press " N "
choice /n >nul
if errorlevel 2 goto end
===============================================
CLS
WBAT BOX "Please enter your choice:",Shutdown the computer,Restart the computer
IF NOT ERRORLEVEL 3 GOTO ANS
===============================================
What do ERRORLEVEL 2 and ERRORLEVEL 3 above mean?!!!
Floor 2 Posted 2003-05-25 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Here, ERRORLEVEL returns different values according to the user's selection in the WBAT menu. For example, if the user chooses the first option, then the value of ERRORLEVEL will be 1, and so on.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 3 Posted 2003-05-26 00:00 ·  中国 江苏 扬州 联通
银牌会员
★★
三生缘里笑红尘
Credits 1,063
Posts 292
Joined 2003-03-09 00:00
23-year member
UID 1073
Gender Male
Status Offline
Thanks
Forum Jump: