I. Single Sign
~
① In for, the extended variable is used.
② At % var :~ N, m % indicates the string at the specified position using the extended environment variable.
③ Indicates the unary operator in set/a and returns the bitwise inverse of the operand.
!
① A metaoperator in set/a, indicating non-logical. For example, set/A =! 0, then a indicates logic 1.
@
① Hide the echo of the command line itself, which is often used in batch processing.
$
① In the findstr command, it indicates the end of a row.
② In the prompt command, escape the subsequent characters (symbolic or effective ).
%
① The binary operator in set/A indicates the arithmetic remainder.
② In the command line environment, a character (which can be letters, numbers, or some specific characters) is followed before the for command in to specify a loop or traverse the indicator variable.
③ In batch processing, a number is followed to reference the specified parameters for the current batch processing.
④ In other cases, % will be removed (batch processing) or retained (command line)
^
① Cancel the escape Function of a specific character, for example, <<! ", But not %. For example, to display some special characters on the screen, such as >>|^&, you can add a ^ symbol before it to display the characters after this ^, ^ indicates displaying a ^, ^ | indicates displaying a | character;
② Binary operators in set/A indicate bitwise XOR.
③ In findstr/R [], it indicates that the specified character set does not match.
&
① Command connection character. For example, if you want to execute two commands simultaneously on a line of text, you can use the & command to connect the two commands.
② In set/A, it is bitwise AND.
*
① Represents any character, which is commonly referred to as "wildcard". For example, if you want to find all the character files (.txt) in the C root directory, you can enter the command "dir c: \ *. txt ".
② Binary operators in set/A represent arithmetic multiplication.
③ In findstr/R, match the previous character multiple times.
-
① The range identifier, such as the date query, can be used in the tokens operation in the for command.
② Connect two characters in findstr/R to indicate the matching range.
③-The switch that follows the/of some commands indicates the reverse switch.
④ In set/:
1. indicates a negative number.
2. Arithmetic subtraction.
+
① It is mainly used in the Copy command, indicating that this + character is required to merge many files into one file.
② Binary operators in set/A indicate arithmetic addition.