MLHA - PC - Software - Programmering - Script - DOS Batch (.BAT)
Batch Commands: (in Command.com)
v call, echo, for, goto, if, pause, rem, shift

>Eksempler
DOS Scripting

Batch - call

 

Batch - echo

>for

Batch - for

Ex: vælg antal linier i MS-DOS vinduet
- 25 linier er standard, men 43 eller 50 linier kan også vælges med DOS-kommandoen MODE CON LINES=
@echo off
for %%i in (25 43 50) do if %%i==%1 goto ok
echo lines 25|43|50
goto end
:ok
mode con lines=%1
:end
>lines 43

Batch - goto

>for

Batch - if

>for

Batch - pause

 

Batch - rem

 

Batch - shift