> Hi Jeremy, while you are at it:
>
> Wondering how Jerome could test whether the current shell
> is FreeCOM without needing temp files, ... FWIW, at one time I was trying to 
> figure out a way to automatically determine whether my executable program was 
> being called from the commend line (any command line -- FreeCOM or 
> COMMAND.COM or whatever) or whether I was being EXEC'd from another program.  
> I could never figure out a reliable way to do that.  The best I could do was 
> go back through the MCB chain and glean the name of my parent and compare it 
> to a list of known command shell names (COMMAND, 4DOS, etc. -- there are 
> several of them including the Windows & OS/2 command shells, and IIRC DOSBox 
> doesn't show any parent at all).  That turned out to be so unreliable and 
> convoluted that I abandoned the idea. I know you're not trying to do the 
> exact same thing, but it may be similar enough that it could give you some 
> ideas.  I'd be interested if you can figure anything out.
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to