cheatsheet dos
Cheatsheat for DOS batches
| Comment | REM This is a comment in a DOS batch file |
ECHO Hello World! |
|
| Arguments | %1 %2 %3 |
| if | IF (condition) ( |
| for | for /l %%x in (1, 1, 5) do ( REM Do stuff) |
| Exit | EXIT |
| Get return code | ECHO %errorlevel% |
Cheatsheat for DOS batches
| Comment | REM This is a comment in a DOS batch file |
ECHO Hello World! |
|
| Arguments | %1 %2 %3 |
| if | IF (condition) ( |
| for | for /l %%x in (1, 1, 5) do ( REM Do stuff) |
| Exit | EXIT |
| Get return code | ECHO %errorlevel% |