Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!lll-lcc!seismo!nbires!isis!dragheb From: dragheb@isis.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: Turbo source for fork()/exec()? Message-ID: <1648@isis.UUCP> Date: Mon, 16-Feb-87 10:45:29 EST Article-I.D.: isis.1648 Posted: Mon Feb 16 10:45:29 1987 Date-Received: Wed, 18-Feb-87 05:39:26 EST References: <3540009@hpfcph.HP.COM> <540@sdiris1.UUCP> Reply-To: dragheb@isis.UUCP (Darius "OPRDRT" Ragheb) Organization: Math/CS, University of Denver Lines: 24 In article <540@sdiris1.UUCP> jjc@sdiris1.UUCP (Jim Carter) writes: >In article <3540009@hpfcph.HP.COM>, dalem@hpfcph.HP.COM ( Dale McCluskey) writes: >> Does anyone have a Turbo Pascal procedure/function that will execute an >> arbitrary MSDOS command (chkdsk, format, command, or any executable file)? >> If it's small, perhaps you could post it. If not, please email me. Thanks. > I know that Blaise Power Tools (a set of C-like tools for Turbo Pascal) have two types of spawns: one for loading COMMAND.COM with the /C option and one just to exec another program. These tools sell for around $95.00 and for the exec include a special assembly file. The best way to do this is to write one's own assembly procedure....I am working on this and am having trouble linking it into Turbo,....if I get it figured out, I will post it (it almost works 100% of the time on its own, but Turbo is sort of wierd :-) -- Do it in C. If you can't do it in C, do it in Assembly. If you can't do it in Assembly, it is not worth doing!! Darius Ragheb isis!dragheb | dragheb@isis.cs.du.edu