What does “@” mean in Windows batch scripts

前端 未结 7 1776
遥遥无期
遥遥无期 2020-12-02 07:12

I saw @ is used in such contexts:

@echo off

@echo start eclipse.exe

What does @ mean here?

7条回答
  •  天命终不由人
    2020-12-02 07:24

    It means "don't echo the command to standard output".

    Rather strangely,

    echo off
    

    will send echo off to the output! So,

    @echo off
    

    sets this automatic echo behaviour off - and stops it for all future commands, too.

    Source: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/batch.mspx?mfr=true

提交回复
热议问题