How to "comment-out" (add comment) in a batch/cmd? -


i have batch file runs several python scripts table modifications.

  1. i want have users comment out 1-2 python scripts don't want run, rather removing them batch file (so next user knows these scripts exist options!)

  2. i want add comments bring attention variables need update in batch file before run it. see can use rem. looks that's more updating user progress after they've run it.

is there syntax more appropriately adding comment?

the rem command indeed comments. doesn't inherently update after running script. script authors might use way instead of echo, though, because default batch interpreter print out each command before it's processed. since rem commands don't anything, it's safe print them without side effects. avoid printing command, prefix @, or, apply setting throughout program, run @echo off. (it's echo off avoid printing further commands; @ avoid printing that command prior echo setting taking effect.)

so, in batch file, might use this:

@echo off rem skip following python commands, put "rem" before them: python foo.py python bar.py 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -