Batch | Bash | Description |
---|---|---|
%variable% | $variable | A regular variable |
!variable! | $variable | A 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 |