For more information about the functions of symbols in cmd dos, see page 1/2.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.