In Bash, # is used to comment the following. I was wondering in Windows command line, how to make a comment?
Thanks and regards!
In Bash, # is used to comment the following. I was wondering in Windows command line, how to make a comment?
Thanks and regards!
A comment is produced using the REM command which is short for "Remark".
REM Comment here...
Lines starting with "rem" (from the word remarks) are comments:
rem comment here
echo "hello"
You can either use REM
for remark or the more shorthand version ::
, which sort of looks like #
if you squint :-)
I, of course, prefer the ::
variant since I a bashaholic and I'm still trying to forget the painful days of BASIC.