@echo off PATH=P:\MinGW\bin;%PATH% set OPTS=-ansi -Wall -pedantic rem falls Debuggen gewuenscht set DEBUG_OPTS=-g rem falls kein Debuggen noetig (Executable wird kleiner) rem set DEBUG_OPTS= set DIR=%1 set FILE=%2 set OTHER=%3 %4 %5 %6 %7 %8 %9 rem echo Kontrollausgabe: DIR = %DIR% rem echo Kontrollausgabe: FILE = %FILE% rem echo Kontrollausgabe: OTHER = %OTHER% cd /d %DIR% echo Kommando: g++ %OPTS% %DEBUG_OPTS% %FILE% %OTHER% g++ %OPTS% %DEBUG_OPTS% %FILE% %OTHER%