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