Mail Archives: djgpp/2000/02/08/11:11:44
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
[...]
> You could also create a batch file for each
> script FOO, called FOO.bat, which would say this:
> @echo off
> sh %0
> However, there's a caveat: you cannot redirect standard streams of a
> batch file, so if you go this way, you lose the ability to redirect
> the script's I/O, which might be important for some scripts.
If you want, there's a remedy for that, as well: *Compile* the batch
files to .com files, using PC Magazines 'Bat2exec'. Remarkably enough,
those compiled batch files do support redirection, unlike the
originals.
I used it, a *long* while ago, to set up a whole legion of such
compiled batches for the DJGPP port of NETPBM. Worked like a charm,
once I got it set up.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -