How do I make a Windows batch script completely silent?

后端 未结 5 1824
天涯浪人
天涯浪人 2020-12-13 03:33

There has been variants of this question asked for generations, but despite writing some quite complicated Windows scripts, I can\'t seem to find out how to make them actual

5条回答
  •  甜味超标
    2020-12-13 04:22

    Just add a >NUL at the end of the lines producing the messages.

    For example,

    COPY %scriptDirectory%test.bat %scriptDirectory%test2.bat >NUL

提交回复
热议问题