Skip to main content
added 22 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266

Use :: or REM

:: commenttttttttttt REM commenttttttttttt 

BUT (as people noted):

  • :: doesn't work inline; if they are not in the beginning of line, then add & character:
    your commands here & :: commenttttttttttt
  • Inside nested parts (IF/ELSE, FOR loops, etc...) :: should be followed with normal line, otherwise it gives error (use REM there).
  • :: may also fail within setlocal ENABLEDELAYEDEXPANSION

Use :: or REM

:: commenttttttttttt REM commenttttttttttt 

BUT (as people noted):

  • :: doesn't work inline; add & character:
    your commands here & :: commenttttttttttt
  • Inside nested parts (IF/ELSE, FOR loops, etc...) :: should be followed with normal line, otherwise it gives error (use REM there).
  • :: may also fail within setlocal ENABLEDELAYEDEXPANSION

Use :: or REM

:: commenttttttttttt REM commenttttttttttt 

BUT (as people noted):

  • if they are not in the beginning of line, then add & character:
    your commands here & :: commenttttttttttt
  • Inside nested parts (IF/ELSE, FOR loops, etc...) :: should be followed with normal line, otherwise it gives error (use REM there).
  • :: may also fail within setlocal ENABLEDELAYEDEXPANSION
deleted 9 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266

Use :: or REM

:: commenttttttttttt REM commenttttttttttt 

BUT (as people noted):

  • :: doesn't work inline; add & character:
    your commands here & :: commenttttttttttt
  • Inside nested parts (IF/ELSE, FOR loops, etc...) use :: line should be followed with normal line, otherwise it gives error (use REM there).
  • :: may also fail within setlocal ENABLEDELAYEDEXPANSION

Use :: or REM

:: commenttttttttttt REM commenttttttttttt 

BUT (as people noted):

  • :: doesn't work inline; add & character:
    your commands here & :: commenttttttttttt
  • Inside nested parts (IF/ELSE, FOR loops, etc...) use :: line should be followed with normal line, otherwise it gives error (use REM there).
  • :: may also fail within setlocal ENABLEDELAYEDEXPANSION

Use :: or REM

:: commenttttttttttt REM commenttttttttttt 

BUT (as people noted):

  • :: doesn't work inline; add & character:
    your commands here & :: commenttttttttttt
  • Inside nested parts (IF/ELSE, FOR loops, etc...) :: should be followed with normal line, otherwise it gives error (use REM there).
  • :: may also fail within setlocal ENABLEDELAYEDEXPANSION
added 52 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266

Use :: or REM

:: commenttttttttttt REM commenttttttttttt 

BUT (as people noted):

  • If you use inline, you need to:: doesn't work inline; add & character:
    your commands here & :: commenttttttttttt
  • Inside nested logicparts (IF/ELSE, FOR loops, etc...) use REM because :: line should be followed with normal line, otherwise it gives an error (use REM there).
  • :: may also fail within setlocal ENABLEDELAYEDEXPANSION

Use :: or REM

:: commenttttttttttt REM commenttttttttttt 

BUT (as people noted):

  • If you use inline, you need to add & character:
    your commands here & :: commenttttttttttt
  • Inside nested logic (IF/ELSE, FOR loops, etc...) use REM because :: gives an error.
  • :: may fail within setlocal ENABLEDELAYEDEXPANSION

Use :: or REM

:: commenttttttttttt REM commenttttttttttt 

BUT (as people noted):

  • :: doesn't work inline; add & character:
    your commands here & :: commenttttttttttt
  • Inside nested parts (IF/ELSE, FOR loops, etc...) use :: line should be followed with normal line, otherwise it gives error (use REM there).
  • :: may also fail within setlocal ENABLEDELAYEDEXPANSION
added 4 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
deleted 4 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
added 3 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
added 72 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
deleted 218 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
deleted 2 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
Added info that one can escape () inside IF statements with ^
Source Link
Daniel Sokolowski
  • 12.5k
  • 4
  • 75
  • 58
Loading
added 25 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
Rollback to Revision 33
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
As noted by the comments and some of the other answers, the current example doesn't work in some cases. This edit should help clarify the situations in which an ampersand is needed.
Source Link
Pikamander2
  • 8.5k
  • 4
  • 58
  • 75
Loading
deleted 46 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
deleted 84 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
added 2 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
deleted 3 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
Rollback to Revision 27
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
comment must not be at the same line of the codes (sorry, the system forced me to change more, so I would just change more about something super minor...)
Source Link
Loading
added 14 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
added 76 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
added 89 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
deleted 7 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
deleted 42 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading
deleted 5 characters in body
Source Link
T.Todua
  • 57.1k
  • 22
  • 261
  • 266
Loading