Common directives for DOS batch processing (i)

Source: Internet
Author: User
Tags echo command

Common directives: echo Command, @ command, call command, pause command, REM command

  1. echo Command:

    Syntax: Echo [On|off] [Message]

    function: Displays the message, turns on or off the echo function of all instructions , displays the current echo settings.

    ① uses echo without any parameters to view the current echo settings

    Echo

    650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/76/03/wKioL1ZIW37gAyd4AAAIdW5dM3Q739.png "title=" 1.png " alt= "Wkiol1ziw37gayd4aaaidw5dm3q739.png"/>
    ② plus parameter (message) to display a message

    Echo Hello,dos

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/76/03/wKioL1ZIXAKjqwo0AAAIgvHMCSY282.png "title=" 1.png " alt= "Wkiol1zixakjqwo0aaaigvhmcsy282.png"/>
③ plus parameter to turn (on) or off (off) Echo

echo off

Echo

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/76/03/wKioL1ZIXMngODmoAAAJU5cxFpM507.png "title=" 1. PNG "alt=" Wkiol1zixmngodmoaaaju5cxfpm507.png "/>

Echo Complete Example:

Echo

Echo Hello,echo1

echo off
Echo

Echo Hello,echo2
echo on
Echo

Echo Hello,echo3

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/76/03/wKioL1ZIXnKgQJt0AAAo_iYYZaQ096.png "title=" 1.png " alt= "Wkiol1zixnkgqjt0aaao_iyyzaq096.png"/>

2 [email protected] directive

Features: this directive turns off Echo

instruction :@ [command]

Example:

Echo hello,@1
@echo hello,@2
Echo hello,@3

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/76/03/wKioL1ZIYjKQe3F_AAAaDrYS9MM920.png "title=" 2.png " alt= "Wkiol1ziyjkqe3f_aaaadrys9mm920.png"/>

This article is from the "Execute" blog, so be sure to keep this source http://executer.blog.51cto.com/10404661/1712932

Common directives for DOS batch processing (i)

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.