![]() |
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-12 21:34 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » |
| Printable Version 999 / 2 |
| Floor1 hotdog | Posted 2003-08-05 00:00 |
| 中级用户 Posts 78 Credits 411 | |
|
What determines the number after if errorlevel?
I can't figure it out. If it means every line that runs has a number ......... copy xxcopy.exe %RAMD%:\ > NUL rem copy extract.exe %RAMD%:\ > NUL set comspec=%RAMD%:\command.com LH MSCDEX.EXE /D:MSCD000 /L:%CDROM% CDA %CDROM% > NUL IF errorlevel 1 GOTO NEXTCD then why is it 1 here? |
|
| Floor2 电吉入侵 | Posted 2003-08-05 00:00 |
| 初级用户 Posts 377 Credits 1,480 | |
|
CDA %CDROM% > NUL ;use CDA %cdrom% to check whether the cdrom is ready; if it is ready it returns 1,
IF errorlevel 1 GOTO NEXTCD;if it returns 1 then goto nextcd, otherwise execute the next line. |
|
| Floor3 hotdog | Posted 2003-08-05 00:00 |
| 中级用户 Posts 78 Credits 411 | |
|
How many return values can it have?
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |