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-15 14:06
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How to make IF support multiple statements under pure DOS View 2,492 Replies 6
Original Poster Posted 2010-03-18 23:07 ·  中国 北京 鹏博士BGP
新手上路
Credits 25
Posts 11
Joined 2010-03-15 17:17
16-year member
UID 162247
Gender Male
Status Offline
Could everyone tell me how, under pure ms-dos7.10, to make the IF statement support multiple statements?
For example
if %condition%=6 statement 1 && statement 2……

Under pure DOS, it seems to treat the whole “statement 1 && statement 2……” as a single statement.
Floor 2 Posted 2010-03-19 19:28 ·  中国 上海 杨浦区 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
You can use 4DOS as the command interpreter
Floor 3 Posted 2010-03-22 16:42 ·  中国 北京 鹏博士BGP
新手上路
Credits 25
Posts 11
Joined 2010-03-15 17:17
16-year member
UID 162247
Gender Male
Status Offline
Originally posted by DOSforever at 2010-3-19 19:28:
You can use 4DOS as the command interpreter



Is the syntax of 4dos basic commands different from the original command?
Floor 4 Posted 2010-03-22 21:21 ·  中国 上海 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
http://www.cn-dos.net/forum/viewthread.php?tid=15214#pid91455
Compared with the traditional COMMAND.COM, 4DOS really has changed a lot, but it does not change COMMAND.COM's original syntax and parameters. Rather, it extends them on that basis. You can also use it entirely according to your COMMAND.COM habits. BATCH files originally written under COMMAND.COM can run under 4DOS without any modification, but if you do that, then there is no difference between the two, and you cannot bring out 4DOS's advantages and features at all.
Floor 5 Posted 2010-03-22 22:56 ·  中国 吉林 长春 电信
初级用户
Credits 69
Posts 46
Joined 2010-03-18 11:14
16-year member
UID 162446
Gender Male
From 山东
Status Offline
What kind of thing is 4dos
Floor 6 Posted 2010-03-27 10:12 ·  中国 河北 廊坊 联通
初级用户
Credits 27
Posts 14
Joined 2007-04-07 12:53
19-year member
UID 84283
Gender Male
Status Offline
But it has also stopped being updated and supported
Floor 7 Posted 2010-04-28 17:51 ·  中国 北京 鹏博士BGP
新手上路
Credits 25
Posts 11
Joined 2010-03-15 17:17
16-year member
UID 162247
Gender Male
Status Offline
Thanks, moderator, but I already know now.
Actually it's best to use the jump command; after all, the less the DOS system is changed, the better.
Forum Jump: