DOS - (Rem|Remarks|Comments)

About

Comments can be added to batch script by using:

  • the rem command
  • or the alias :: (<note warning>The alias cannot be added in a block (A if block for instance</note>)

To get more information on Rem, type in your console:

help rem

Example

@echo on
Rem You will never see this comment even with echo on
:: Neither this one

Support

) was unexpected at this time

If you use the comment alias :: in a block (if block), you may get this error:

) was unexpected at this time.

In an block, use the command REM instead.


Powered by ComboStrap