![]() |
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 09:51 |
47,813 topics / 349,902 posts / today 0 new / 48,257 members |
| DOS疑难解答 & 问题讨论 (解答室) » How to make IF support multiple statements under pure DOS |
| Printable Version 2,491 / 6 |
| Floor1 superking | Posted 2010-03-18 23:07 |
| 新手上路 Posts 11 Credits 25 | |
|
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. |
|
| Floor2 DOSforever | Posted 2010-03-19 19:28 |
| 金牌会员 Posts 2,239 Credits 4,639 | |
|
You can use 4DOS as the command interpreter
|
|
| Floor3 superking | Posted 2010-03-22 16:42 |
| 新手上路 Posts 11 Credits 25 | |
Originally posted by DOSforever at 2010-3-19 19:28: Is the syntax of 4dos basic commands different from the original command? |
|
| Floor4 DOSforever | Posted 2010-03-22 21:21 |
| 金牌会员 Posts 2,239 Credits 4,639 | |
|
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. |
|
| Floor5 luuk | Posted 2010-03-22 22:56 |
| 初级用户 Posts 46 Credits 69 From 山东 | |
|
What kind of thing is 4dos
|
|
| Floor6 kaixinmao | Posted 2010-03-27 10:12 |
| 初级用户 Posts 14 Credits 27 | |
|
But it has also stopped being updated and supported
|
|
| Floor7 superking | Posted 2010-04-28 17:51 |
| 新手上路 Posts 11 Credits 25 | |
|
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. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |