Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!pt.cs.cmu.edu!b.gp.cs.cmu.edu!ralf From: ralf@b.gp.cs.cmu.edu (Ralf Brown) Newsgroups: comp.sys.ibm.pc Subject: Re: Secondary command processor w/Turbo Message-ID: <27@b.gp.cs.cmu.edu> Date: Wed, 29-Apr-87 09:07:39 EDT Article-I.D.: b.27 Posted: Wed Apr 29 09:07:39 1987 Date-Received: Sat, 2-May-87 02:32:30 EDT References: <3509@gitpyr.gatech.EDU> Distribution: na Organization: Carnegie-Mellon University, CS/RI Lines: 30 Keywords: Tough The query was how to run a second COMMAND.COM from Turbo Pascal, an answer was given involving a "job control program". At least in Turbo 3.0x, there is a much simpler way (provided that you know beforehand that the program will only need a specific amount of heap and stack space). When compiling to a .COM file, specify the mAximum heap space to be the maximum your program will need. When the .COM file is run, Turbo releases any memory beyond the maximum heap size back to DOS. Then simply run COMMAND by executing an INT 21h function call 4Bh (though you should check first to make sure there is enough RAM for COMMAND and whatever you want to do from within COMMAND. -- +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+ | ARPA: RALF@B.GP.CS.CMU.EDU "Teaching COBOL ought to be | | AT&T: (412) 268-3053 (school) regarded as a criminal act" | | Snail: Ralf Brown --- Edsger Dijkstra | | Computer Science Department | | Carnegie-Mellon University DISCLAIMER? Who ever said I claimed | | Pittsburgh, PA 15213 anything? | +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+ -- +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+ | ARPA: RALF@B.GP.CS.CMU.EDU "Teaching COBOL ought to be | | AT&T: (412) 268-3053 (school) regarded as a criminal act" | | Snail: Ralf Brown --- Edsger Dijkstra | | Computer Science Department | | Carnegie-Mellon University DISCLAIMER? Who ever said I claimed | | Pittsburgh, PA 15213 anything? | +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+