> On Jul 31, 2026, at 11:45 PM, Bret Johnson via Freedos-devel > <[email protected]> wrote: > > >> >> What is the easiest way how to run child EXE process from parent program? >> I can't use COM file and simple FAR CALL because I need a regular DOS child >> process. >> Maybe to hook INT21h/AH=3Dh and INT21h/AH=3Fh and reprogram then to access my >> buffer and not the disk file? > > You seem to be confusing and conflating a bunch of things here. There is no > such thing as a "child EXE process". An EXE is a program, not a process. > You can run a child program (EXE, COM, and even BAT programs can be EXEC'd as > a child program). You can give them command-line paramaters when you run > them, but while the are running the parent program can't interact with them > directly. The entire machine is dedicated to the child program and the > parent only gains control back again when the child program is done. >
You have created a lot of great stuff. But, this seems like an odd question from you. So, I am also confused with what you trying to do. > This is very different than something like an overlay or a data file which > simply loads some code and/or data into memory and the main program uses that > code and/or data in memory by referencing or calling or jumping to the > correct memory address. > > I think what you may be trying to pass data back and forth between your main > (parent) program and a child program using the buffer. If that's the case, > you can just provide the address of the memory buffer to the child process as > a command-line parameter. > That is such an ugly hack…. But, it is what my PGME does. A small EXE, that runs an enormous BIN that is just a renamed EXE. It passes a hex of the segment to a buffer. Then the big EXE puts the simple command required to launch the requested program in the buffer and exits. The little stub then executes the requested program and relaunches the big EXE. This is to free up nearly all memory. :-) > > _______________________________________________ > Freedos-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freedos-devel _______________________________________________ Freedos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-devel
