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-26 18:34
中国DOS联盟论坛 » 其它操作系统综合讨论区 » Problems with Windows command symbols View 24,427 Replies 126
Floor 31 Posted 2007-01-25 04:58 ·  中国 广东 广州 海珠区 电信
初级用户
Credits 68
Posts 32
Joined 2007-01-24 04:00
19-year member
UID 77490
Gender Male
From 广东潮州
Status Offline
Good stuff. Copied it down. Thanks lxmxn. It seems to be missing the "!"? Can you add it? (exclamation mark)
Floor 32 Posted 2007-01-25 12:00 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
Originally posted by g4rr at 2007-1-24 15:58:
Good stuff. Copied it down.
Thanks lxmxn
It seems that the "!" is missing? Can you supplement it? (Exclamation mark)


  Thank you, brother, for the reminder. It has been supplemented.
Floor 33 Posted 2007-01-25 13:25 ·  中国 广东 广州 珠江宽频
中级用户
★★
Credits 210
Posts 85
Joined 2007-01-14 12:38
19-year member
UID 76501
Gender Male
From 广东广州
Status Offline
Used to be confused by DOS symbols, but now there are authoritative articles to guide, thanks lxmxn!

Some symbols cannot be used in pure DOS, can you add some?
Floor 34 Posted 2007-01-25 13:31 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
Originally posted by lizaoyou at 2007-1-25 00:25:
I used to be confused by DOS symbols, but now there is an authoritative article to guide me. Thank you, lxmxn!

Some symbols cannot be used in pure DOS. Can you add some?


  What you said about supplementing, does it mean pointing out which symbols cannot be used in pure DOS, or writing out the symbols that can only be used in pure DOS?

  In fact, I have only entered pure DOS a few times, and I don't know much about it. I only know a little bit about the symbols in the command line. If we want to sort out the symbol issues in pure DOS, we may need to ask other friends in the forum who often deal with the pure DOS interface to complete it.
Floor 35 Posted 2007-01-25 14:40 ·  中国 广东 广州 珠江宽频
中级用户
★★
Credits 210
Posts 85
Joined 2007-01-14 12:38
19-year member
UID 76501
Gender Male
From 广东广州
Status Offline
It's all right. Thanks for the reply.
Floor 36 Posted 2007-01-25 18:37 ·  中国 湖北 孝感 电信
初级用户
Credits 67
Posts 32
Joined 2007-01-25 18:14
19-year member
UID 77654
Gender Male
From 日本の江户
Status Offline
Floor 37 Posted 2007-01-26 06:58 ·  中国 四川 绵阳 江油市 电信
高级用户
★★★
Credits 502
Posts 327
Joined 2006-12-30 06:01
19-year member
UID 74981
Gender Male
Status Offline
It would be nice if the high-quality products could be downloaded in a package.
Floor 38 Posted 2007-01-27 20:56 ·  中国 广西 梧州 电信
初级用户
Credits 94
Posts 31
Joined 2007-01-27 14:04
19-year member
UID 77865
Gender Male
Status Offline
Floor 39 Posted 2007-01-27 23:08 ·  中国 江西 南昌 电信
银牌会员
★★★
天的白色影子
Credits 2,343
Posts 636
Joined 2004-03-06 00:00
22-year member
UID 19350
Gender Male
Status Offline
Well organized

Add a few points

~ In for, it means using enhanced variable expansion
In set, it means using the extended environment variable to specify the string at the position
In set/a, it means bitwise negation

`` In for/f means that the content they contain is executed as a command line and its output is analyzed

The role of % is more complicated
A single % followed by a number from 0-9 means referencing command line arguments
Used in for to mean referencing loop variables
Using two % to enclose a string means referencing an environment variable
Two consecutive % mean that when executed, it becomes one %
The priority relationship among these four is relatively complicated. Try not to use them in a way that causes ambiguity

^ should be considered as canceling the escape character, that is, turning off the escape function of all escape characters
In set/a, it is bitwise XOR
In the of findstr/r, it means not matching the specified character set

& In set/a is bitwise AND

* In findstr/r means matching the previous character multiple times

- following after / of some commands means taking the reverse switch

| In set/a is bitwise OR
In the help document, it means that the two switches, options or parameters before and after it are optional

\ In findstr/r means regular escape character

In the help document means that the switches, options or parameters inside are optional
In findstr/r, it means matching according to the specified character set inside

'' In for/f means that the content they contain is executed as a command line and its output is analyzed
In for/f "usebackq" means that the string they contain is analyzed as a string

"" In for/f means that the content they contain is analyzed as a string
In for/f "usebackq" means that the content they contain is regarded as a file path and the content of its file is analyzed
In other cases, it means that the content inside is a complete string, and >, >>, <, &, |, spaces, etc. are no longer escaped

< In findstr/r means matching the left boundary of a word, which needs to be used with the escape character \

> In findstr/r means matching the right boundary of a word, which needs to be used with the escape character \

. After \ in the path and when it appears alone
One. means the current directory
Two. means the parent directory
Three. still means the directory two levels up
When it appears in the file name in the path
The last. means the separation between the main file name and the extension file name
In findstr/r, it means matching an arbitrary character at this position

? In the path means matching any one character at this position
Following after / means getting the help document of the command

/ means that the character (string) after it is the function switch (option) of the command
Floor 40 Posted 2007-01-28 06:39 ·  中国 安徽 宿州 泗县 电信
银牌会员
★★★
Credits 1,339
Posts 595
Joined 2004-05-26 00:00
22-year member
UID 25306
Gender Male
From 安徽 宿州
Status Offline
I only did a little bit under pure DOS before, but Cmd is not quite the same as DOS. There's always more to learn.
Floor 41 Posted 2007-01-28 06:53 ·  中国 广东 广州 番禺区 电信
初级用户
Credits 68
Posts 32
Joined 2007-01-24 04:00
19-year member
UID 77490
Gender Male
From 广东潮州
Status Offline
Originally posted by lxmxn at 2007-1-24 11:00 PM:


  Thanks for the reminder from brother, it has been supplemented.


You're too kind, Brother lxmxn. Hehe
I'm just getting started. I still have a lot to learn. I'm working hard....
Thank you again for your post. Your earnestness really impresses me!
Floor 42 Posted 2007-01-28 10:54 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline

  Re qzwqzw:

  Thanks for your supplement, brother. I will combine your supplement to improve it when I have time. I don't have much time to surf the Internet during the holiday, so I can only delay it for a while.
Floor 43 Posted 2007-01-31 05:28 ·  IANA 局域网IP(Private-Use)
新手上路
Credits 4
Posts 2
Joined 2006-11-03 04:06
19-year member
UID 69378
Gender Male
Status Offline
Searched for a long time! Finally found out! Thanks!
Floor 44 Posted 2007-01-31 06:35 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Originally posted by lxmxn at 2007-1-28 10:54:

  Re qzwqzw:

  Thanks for your supplement, I will improve it with your supplement when I have time. I don't have much time to surf the Internet during the vacation, so it can only be delayed for a while.



Hope everyone updates the wiki synchronously.

http://www.cn-dos.net/mediawiki/index.php?title=DOS%E7%AC%A6%E5%8F%B7%E7%AE%80%E5%8D%95%E8%AE%B2%E8%A7%A3

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 45 Posted 2007-02-01 03:30 ·  中国 河南 平顶山 联通
初级用户
Credits 28
Posts 14
Joined 2007-02-01 01:26
19-year member
UID 78259
Gender Male
Status Offline
What a good thing!
Hehe
Forum Jump: