Mail Archives: djgpp-workers/1999/04/15/06:32:57
On Tue, 13 Apr 1999, Salvador Eduardo Tropea (SET) wrote:
> Jumps to .EXEs (doesn't uses CALL):
>
> goto %config%
>
> :C1
> Rem Call Volkov Commander
> vc
> :C2
> ....
> SET PATH....
These cases can be handled. First, there are some known names of
programs that are invoked from AUTOEXEC.BAT, like nc etc. For the
rest of them, where you don't know if that's a batch file or a
program, you can either bypass them or ask the user whether to bypass
them or invoke them.
I'm telling that in the context of what I suggested earlier about
actually running AUTOEXEC.BAT inside a subshell. Ignoring any
programs and batch files migh solve the complications that were
brought up as disadvantages of that approach.
Another approach would be to build a COMMAND.COM simulator. Shouldn't
be too hard. You still will need to detect and bypass all calls to
batch files and external programs, though.
- Raw text -