I have a batch file that runs several python scripts that do table modifications.
I want to have users comment out the 1-2 python scripts that they don't want to run, rather than removing them from the batch file (so the next user knows these scripts exist as options!)
I also want to add comments to bring to their attention specifically the variables they need to update in the Batch file before they run it. I see that I can use
REM
. But it looks like that's more for updating the user with progress after they've run it.
Is there a syntax for more appropriately adding a comment?
Multi line comments
If there are large number of lines you want to comment out then it will be better if you can make multi line comments rather than commenting out every line.
The batch language doesn't have comment blocks, though there are ways to accomplish the effect.
You can use
GOTO
Label and :Label for making block comments.Or, If the comment block appears at the end of the batch file, you can write
EXIT
at end of code and then any number of comments for your understanding.Comments Source