![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-15 17:05 |
47,813 topics / 349,903 posts / today 1 new / 48,257 members |
| DOS疑难解答 & 问题讨论 (解答室) » [Help] About "ERRORLEVEL" |
| Printable Version 1,124 / 2 |
| Floor1 pizigao | Posted 2003-05-25 00:00 |
| 银牌会员 Posts 292 Credits 1,063 | |
|
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?!!! |
|
| Floor2 Wengier | Posted 2003-05-25 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
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.
|
|
| Floor3 pizigao | Posted 2003-05-26 00:00 |
| 银牌会员 Posts 292 Credits 1,063 | |
|
Thanks
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |