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 |
So Doc >> batch-file >> Differences between Batch (Windows) and Terminal (Linux)
This modified text is an extract of the original Stack Overflow Documentation created by following contributors and released under CC BY-SA 3.0
This website is not affiliated with Stack Overflow
Email: [email protected]