Skip to content

Batch Script Other Operators

Learn about essential batch script operators like ,, &&, and || for command separation, conditional execution, and multi-command operations in Windows scripting.

Other Operators

The following table lists the other operators.

Operators Description
, Separator
&& For using Multiple Commands
`

Example: Batch && Operator

&& operator is used for executing multiple commands is a single line.

@echo off
set /A x = 4 && set /A x += 2
echo x = %x%
Outputplaintext
x = 6
Navigation