A killer : in a comment

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Posts: 193
Joined: 26 Dec 2013 09:28

Re: A killer : in a comment

#16 Post by siberia-man » 29 Oct 2020 10:24

Does that post in Russian have to do with the current discussion? http://forum.script-coding.com/viewtopi ... 608#p80608


Content in comments is able to cause a syntactic (captured) error.

Code: Select all

set a=1
rem comment %a:=%

Code: Select all

set a=1
:: comment %a:=%
The "::" comments are parsed as well as the "REM" comments and even more strictly.

Code: Select all

:: comment ^
echo 1
echo 2
:: comment ^

echo 3
echo 4

Post Reply