Mail Archives: djgpp/2000/02/09/19:05:11
In article <Pine DOT SUN DOT 3 DOT 91 DOT 1000209090102 DOT 9816G-100000 AT is>,
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
> That's not surprising: the problems with redirection from a batch file
> are a misfeature of COMMAND.COM, caused by the fact that it doesn't
> spawn another copy of itself to run the batch.
If COMMAND.COM spawned a new shell to run batch files, it would (1)
waste precious conventional memory (and note that batch files are often
used to launch application programs which might need that memory), (2)
make it impossible to permanently set environment variables from a batch
file, and (3) make it unsafe to start TSR programs from a batch file.
For that matter, this behavior doesn't really prevent I/O redirection
with batch files; it just complicates implementing it a bit and
Microsoft didn't bother to go to the trouble. Note that 4DOS works the
same way and it manages redirection with batch files just fine.
Sent via Deja.com http://www.deja.com/
Before you buy.
- Raw text -