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-30 05:00
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » [Solved] How do I specify errorlevel equal to a certain return value? View 817 Replies 2
Original Poster Posted 2006-04-13 23:03 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
if errorlevel 5
means “if it is greater than or equal to 5”;
if not errorlevel 6
means “if it is less than 6”;

Then
if errorlevel 5 and if not errorlevel 6
means “equal to 5”

That understanding isn’t wrong, right!

But is a form like “if errorlevel 5 and if not errorlevel 6” correct? Does DOS recognize syntax like this?

Could an expert please point it out!

Thanks :)

[ Last edited by willsort on 2006-4-15 at 00:39 ]
Floor 2 Posted 2006-04-14 00:07 ·  中国 上海 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
Actually, you’ve already more or less found the right answer; you just need to remove the and.
Floor 3 Posted 2006-04-14 00:32 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 1,582
Posts 603
Joined 2006-02-20 20:26
20-year member
UID 50690
Status Offline
Thanks
Forum Jump: