Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

batch inline comment

Use "& ::" to make an in-line comment:
echo code_goes_here & :: comment goes here
Comment

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

bat 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 :: git pull rebase command 
Shell :: ubuntu livepatch fail 
Shell :: change git committed message 
Shell :: Do you need to install EsLint after intalling the extension 
Shell :: anaconda for ubuntu 18.04 
Shell :: powershell history file 
Shell :: how to delete local master branch in git 
Shell :: Create and Switch To a New Branch in git command 
Shell :: curl trust self signed certificate 
Shell :: how to get the filename without extension 
Shell :: install clang++ 
Shell :: what is echo in a batch file 
Shell :: install nginx on ec2 
Shell :: bash print file permissions 
Shell :: debian list packages automatic install 
Shell :: linux apps 
Shell :: unzip a file terminal 
Shell :: get files with name linux 
Shell :: letsencrypt error 
Shell :: awk use string as field separator 
Shell :: how to create a text file list of the contents of a folder and subfolders 
Shell :: how to make conda to use global packages 
Shell :: bash compare numbers 
Shell :: git submodule update --init --recursive 
Shell :: instaling ansible on ubuntu linux 
Shell :: how to get list folder in cmd to value 
Shell :: how to add filer to git ignore 
Shell :: std error bash 
Shell :: mac Os dark icons for ubuntu 20.04 
Shell :: windows 10 open the start shortcut folder 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =