batch

BATCH ist DIE Skriptsprache in DOS gewesen, sie funktioniert auch noch in Windows.

test01.bat
#
# dieses Skript ist ein Test
#
@echo off
 
SET foo=bar
echo %foo%
 
SET /A summe=2+3
echo %summe%
> test01.bat
bar
5
test02.bat
#
# dieses Skript ist ein Test
#
@echo off
 
echo %1
echo %2
> test02.bat A B
A
B
test03.bat
#
# dieses Skript ist ein Test
#
@echo off
 
set /p EINGABE=Variable Eingeben:
echo %EINGABE%
> test03.bat
Variable Eingeben: