What does “@” mean in Windows batch scripts

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

    Another useful time to include @ is when you use FOR in the command line. For example:

    FOR %F IN (*.*) DO ECHO %F
    

    Previous line show for every file: the command prompt, the ECHO command, and the result of ECHO command. This way:

    FOR %F IN (*.*) DO @ECHO %F
    

    Just the result of ECHO command is shown.

提交回复
热议问题