batch-file Differences between Batch (Windows) and Terminal (Linux) Batch Variables and Their Bash Equivalent

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

BatchBashDescription
%variable%$variableA regular variable
!variable!$variableA variable inside of a code block when setlocal enabledelayedexpansion is on
%errorlevel% or ERRORLEVEL$?Returns the status of the previous command: 0 if successful, 1 (or something else) if not
%1, %2, %3, etc.$1, $2, $3, etc.The parameters given to a script
%*$*All parameters given to a script


Got any batch-file Question?