Commenting multiple lines in DOS batch file

batch-filecommentsdosmultiline

I have written huge MS DOS Batch file. To test this batch file I need to execute some lines only and want to hide/comment out remaining.

I have some existing comment lines starting with :: hence I cannot use :: anymore as it will scramble all comments.

How can I solve this problem?

Best Answer

You can use a goto to skip over code.

goto comment
...skip this...
:comment