. bat batch Add Python task

Source: Internet
Author: User
Tags echo command

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

Related Article

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.