Difference between rem and ::

The Rem command
comment command is equivalent to /*-------*/ in C language. It will not be displayed and executed, but only acts as a comment, which is easy for others to read and modify by yourself in the future.

 

REM commands can be replaced using the :: tag

 

The reason why :: can become a comment is that the : sign immediately after the : sign cancels the function of the label, and the batch interpreter ignores this line of text

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326137348&siteId=291194637