First, the meaning of common commands
Example I,
@echo off
start python C:\Users\ntitled\jiuyangdianpin\update_restt\test_bat. py python C:\users\ntitled\jiuyangdianpin\update_restt\test_bat. py
Python C:\Users\ntitled\jiuyangdianpin\update_restt\test_bat2. py
Exit
1, @
Its purpose is to let the execution window not show the command itself that follows this line. Popular point of view, the beginning of the word, this line of command is not shown. Example, in the first line of @echo off, the function of @ is to let the script do not display the back of the echo off part.
2. Echo
Chinese is the meaning of "feedback" and "echo". It is actually a switch command, that is, it has only two states: open and close. So there's the echo on and echo off two commands. Executing the echo command directly displays the current ECHO command status (off or on) to perform echo off
The echo is turned off, and all commands that follow it do not display the command itself, only the results after the execution, unless you execute the echoes command. In the example V, the first line of the @ command and the echo off command are combined to achieve two purposes: the echo off command itself is not displayed, and the subsequent rows are not displayed
The command itself. It's a bit messy, but if you practice it! Another use of the echo command: You can use it to display information! As an example v the penultimate line, Default BAT file name is START. The bat is displayed in the window after the script executes, and the echo command itself is not displayed (why??). )。
Another use of the echo command two: You can edit the text file directly.
3. Start
Start a separate command prompt window to run the specified program or command. If used without parameters, start opens a second command prompt window.
Up to two test_bat.py processes can be opened and the test_bat2.py process will be executed after two processes have finished running (basically the same run time)
. bat batch Add Python task