DOS batch files (was: Standard Compatibility)
Mon, 7 Apr 1997 00:40:09 +0200 (MET DST)
Nils Bokermann wrote:
>
> Isn't there a way by making *.BAT-Files in dos? That is something like a
> shell-script, isn't it?
Yes.
bpc.bat:
@gpc -g -O2 --borland-pascal --automake="-g -O2 --borland-pascal" %1.pas -o %1.exe %2 %3 %4 %5 %6 %7 %8 %9
The `@' means "don't echo this command to the screen".
AFAIK, there are no `\' signs in DOS to break long lines.
The "%2 %3 %4 ..." are there to pass additional command-line
parameters given to `bpc.bat' to `gpc'.
Problem with such batch files: These will easily bump against
the 128-character limitation of command-lines under DOS ... :-(
Greetings,
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer
peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201]
maintainer GNU Pascal [970401] - http://home.pages.de/~gnu-pascal/ [970125]
Peter Gerwinski (peter@agnes.dida.physik.uni-essen.de)
HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada -
Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es