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-08-12 22:21
Original Poster Posted 2003-08-05 00:00 ·  中国 浙江 杭州 余杭区 电信
中级用户
★★
Credits 411
Posts 78
Joined 2003-07-27 00:00
23-year member
UID 7622
Gender Male
Status Offline
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?
Floor 2 Posted 2003-08-05 00:00 ·  中国 广东 广州 白云区 电信
初级用户
★★★
Credits 1,480
Posts 377
Joined 2003-06-06 00:00
23-year member
UID 3875
Gender Male
Status Offline
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.
欢迎大家访问我的主页!
精品.爱好http://iso.533.net
Floor 3 Posted 2003-08-05 00:00 ·  中国 浙江 杭州 余杭区 电信
中级用户
★★
Credits 411
Posts 78
Joined 2003-07-27 00:00
23-year member
UID 7622
Gender Male
Status Offline
How many return values can it have?
Forum Jump: