As we all know, if Echo follows an environment variable, but the variable is empty, the equivalent of an echo without any arguments, that is, whether the current echo is on or off. Many articles or tutorials offer solutions that add a dot echo
Frequently-used commands echo, @, call, pause, and REM (TIPS: Use: instead of REM) are the most frequently-used commands for batch file processing. We started from them.
First, @ is not a command, but a special identifier for DOS batch processing.
Using the method, create a new one. TXT text document, paste the following red area code in.
Then save it as a *.bat suffix or *.cmd suffix batch file format to run the use!
1. Turn off automatic playback of all partitions
Copy Code code as
One, echo command (Echo graphic version)
1. Echo: Displays the status of the current echo: echo on or echo off.
2. The ECHO On:echo state is set to on, and displays the command line (such as the c:\> before each row, and similar flags).
3. The ECHO
1. Summary
(1). ". Bat": This is the suffix of Microsoft's first batch of processed files and can be run in almost all Windows operating systems.
(2). ". cmd": it is a command line script designed for Windows NT. It is designed for cmd.exe shell and
Reprinted from: "Fun It" public numberObjectiveBatch file contains a series of DOS commands that are typically used to automate repetitive tasks. Users simply double-click a batch file to perform tasks without having to enter the same instruction
1 ,@Generally, a command or statement is followed by a command. The command or statement itself is not displayed on the screen. Save the following code as the test. cmd file and run it to compare the output differences between the two echo
1, @After it is generally followed by a command or statement, the command or statement itself is not displayed on the screen when executed. Please save the following code as a test.cmd file and run it to compare the output differences of the two
The following program can be used to call and execute the prepared bat in C #. Assume that the content in test. bat is
Is:
@ Echo off
ECHO we got those parameter % 0, % 1
The following program calls test. bat, passes in the parameter "first", and
CMD character command use@\ \ Hide the echo of the command.~\ \ In for indicates the use of an enhanced variable extension;A string in set that represents the location specified using the extended environment variable;The bitwise inverse is
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.