![]() |
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-13 03:54 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » A question nobody has ever asked before — the spaces before parameters!!! |
| Printable Version 654 / 3 |
| Floor1 nbh002 | Posted 2003-10-19 00:00 |
| 中级用户 Posts 67 Credits 396 | |
|
Everyone has definitely seen and used quite a few DOS commands and their parameters. I wonder whether anyone has noticed this question:
Something like "dir /p" is actually the same as "dir/p", and also the same as "dir /p". In other words, whether there is a space before the parameter, and how many spaces there are, does not matter at all! And "ping 10.72.11.96 -t" and "ping 10.72.11.96 -t" are also the same, but "ping 10.72.11.96-t" is wrong. (It can also be stated as: "ping -t 10.72.11.96" and "ping -t 10.72.11.96" are also the same, but "ping-t 10.72.11.96" is wrong.) So how does DOS itself define this??? (Actually, anywhere parameters are used—like HTML statements and so on—there should be formatting requirements for parameters, right? And there are strict aspects as well as relaxed ones! Experts, who can sum this up!!!) |
|
| Floor2 cn_archer | Posted 2003-10-19 00:00 |
| 元老会员 Posts 991 Credits 2,903 From 福建省 | |
|
I'm not very clear on the specifics, but for most DOS commands you do need to add a space before the parameters. For example, when installing Win98 with setup.exe, if you add parameters, you have to use the format setup /is/ie, otherwise after running for a while it will prompt an error.
I guess commands like DIR and FORMAT just don't have much of a requirement. |
|
| Floor3 电吉入侵 | Posted 2003-10-20 00:00 |
| 初级用户 Posts 377 Credits 1,480 | |
|
It depends on each piece of software. Some require it, some don't...
|
|
| Floor4 红色狂想 | Posted 2003-10-20 00:00 |
| 金牌会员 Posts 1,501 Credits 4,289 From 河南省 | |
|
The key is in the design—whatever way it is designed, that's the way it is.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |