中国DOS联盟论坛

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-10-12 13:08
47,815 topics / 349,922 posts / today 0 new / 48,285 members
其它操作系统综合讨论区 » Problems with Windows command symbols
Printable Version  27,198 / 126
Floor31 g4rr Posted 2007-01-25 04:58
初级用户 Posts 32 Credits 68 From 广东潮州
Good stuff. Copied it down. Thanks lxmxn. It seems to be missing the "!"? Can you add it? (exclamation mark)
Floor32 lxmxn Posted 2007-01-25 12:00
版主 Posts 4,938 Credits 11,386
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.
Floor33 lizaoyou Posted 2007-01-25 13:25
中级用户 Posts 85 Credits 210 From 广东广州
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?
Floor34 lxmxn Posted 2007-01-25 13:31
版主 Posts 4,938 Credits 11,386
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.
Floor35 lizaoyou Posted 2007-01-25 14:40
中级用户 Posts 85 Credits 210 From 广东广州
It's all right. Thanks for the reply.
Floor36 kawaguchi Posted 2007-01-25 18:37
初级用户 Posts 32 Credits 67 From 日本の江户
Floor37 qingfushuan Posted 2007-01-26 06:58
高级用户 Posts 327 Credits 502
It would be nice if the high-quality products could be downloaded in a package.
Floor38 zhuzhu818 Posted 2007-01-27 20:56
初级用户 Posts 31 Credits 94
Floor39 qzwqzw Posted 2007-01-27 23:08
银牌会员 Posts 636 Credits 2,343
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
Floor40 chujiafu Posted 2007-01-28 06:39
银牌会员 Posts 595 Credits 1,339 From 安徽 宿州
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.
Floor41 g4rr Posted 2007-01-28 06:53
初级用户 Posts 32 Credits 68 From 广东潮州
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!
Floor42 lxmxn Posted 2007-01-28 10:54
版主 Posts 4,938 Credits 11,386

  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.
Floor43 tangdou313 Posted 2007-01-31 05:28
新手上路 Posts 2 Credits 4
Searched for a long time! Finally found out! Thanks!
Floor44 electronixtar Posted 2007-01-31 06:35
铂金会员 Posts 2,672 Credits 7,493
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
Floor45 xuehu Posted 2007-02-01 03:30
初级用户 Posts 14 Credits 28
What a good thing!
Hehe
Prev  1 2 3 4 5 6 … 9  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023