What does “@” mean in Windows batch scripts

前端 未结 7 1796
遥遥无期
遥遥无期 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:16

    The @ disables echo for that one command. Without it, the echo start eclipse.exe line would print both the intended start eclipse.exe and the echo start eclipse.exe line.

    The echo off turns off the by-default command echoing.

    So @echo off silently turns off command echoing, and only output the batch author intended to be written is actually written.

提交回复
热议问题