当前位置:网站首页>[batch dos-cmd command - summary and summary] - add comment command (REM or::)

[batch dos-cmd command - summary and summary] - add comment command (REM or::)

2022-06-25 07:31:00 dssgresadfsrgre

If not rem or :: Words , Output comment text directly , Will report a mistake —— This is not an order .

 

  add to rem or :: after , The annotation text will be in cmd Keep it in the window . as for rem and :: The difference between , I haven't seen it yet , It seems that only :: The next line of the is more compact than the line where it is located .

  Be careful :rem and :: It is also an instruction in essence , So when in ECHO Closed state or execution bat At the beginning of the line when the file is @ When the operator , It will be hidden by default .

Execute the above bat file , Got give the result as follows .echo off The following sentence of rem No display , Because in echo The closed position . and echo on The following sentence rem It doesn't show , Because @ The operator hides all instructions on the line .

原网站

版权声明
本文为[dssgresadfsrgre]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206250505530288.html