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


    650) this.width=650; "src=" Http:// "title=" 1.png " alt= "Wkiol1ziw37gayd4aaaidw5dm3q739.png"/>
    ② plus parameter (message) to display a message

    Echo Hello,dos

650) this.width=650; "src=" Http:// "title=" 1.png " alt= "Wkiol1zixakjqwo0aaaigvhmcsy282.png"/>
③ plus parameter to turn (on) or off (off) Echo

echo off


650) this.width=650; "src=" Http:// "title=" 1. PNG "alt=" Wkiol1zixmngodmoaaaju5cxfpm507.png "/>

Echo Complete Example:


Echo Hello,echo1

echo off

Echo Hello,echo2
echo on

Echo Hello,echo3

650) this.width=650; "src=" Http:// "title=" 1.png " alt= "Wkiol1zixnkgqjt0aaao_iyyzaq096.png"/>

2 [email protected] directive

Features: this directive turns off Echo

instruction :@ [command]


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

650) this.width=650; "src=" Http:// "title=" 2.png " alt= "Wkiol1ziyjkqe3f_aaaadrys9mm920.png"/>

This article is from the "Execute" blog, so be sure to keep this source

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: 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.