Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

comment in batch

:: This is a comment.
@Rem Also a comment.
Comment

comment in batch file

:: This is a comment

REM This is also a comment
Comment

comment lines in batch file

:: This is a comment line
Comment

batch file add a comment

Use :: or REM

Eaxmple:
::   comment goes here
REM  comment goes here

Inline comments:
commands go here & :: comment goes here
Comment

batch file comment after command

::   This is a comment
REM  This is also a comment

echo Hello world & :: This is an inline comment
Comment

batch comment out a line

'Simply add :: before the offending line'

Example:
echo this will print
:: echo but this wont
Comment

batch comment

:: This is a comment that won't be printed
- or -
REM This is a comment that will be printed

ECHO "Hello" & :: This command prints 'Hello'
- or -
ECHO "Hello" REM This command prints 'Hello'
Comment

batch script comment

Rem This is a comment

:: This is another comment
Comment

batch comment

:: This is a comment is batch
Comment

PREVIOUS NEXT
Code Example
Shell :: download ubuntu 16.04 iso 64-bit 
Shell :: npm install strapi 
Shell :: docker build with args 
Shell :: bash loop foreach find 
Shell :: get working directory rstudio 
Shell :: flush ip windows 10 
Shell :: git merge branch to master command line 
Shell :: git add gitignore 
Shell :: linux chmod 
Shell :: bash move file 
Shell :: insert a line at a line number sed 
Shell :: install fleetssl 
Shell :: tv on ubuntu 
Shell :: how to set global github username and password in git 
Shell :: .gitignore 
Shell :: npm install package as dependecy 
Shell :: how to create new repository in github 
Shell :: add npm to $PATH ubuntu 
Shell :: run mongodb locally 
Shell :: active ssh users in ubuntu 
Shell :: how to remove git commit history 
Shell :: bash sed with variable 
Shell :: codeigniter 4 db seed 
Shell :: check if word at end of string regex bash 
Shell :: how to install kubectl in ubuntu 
Shell :: log cpu usage on linux 
Shell :: install chocolatey on windows 
Shell :: remove all files matching a pattern in subdirectories 
Shell :: get users shell 
Shell :: comprimir directorio linux 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =