Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site shell.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxb!mhuxn!mhuxm!mhuxj!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!hao!seismo!ut-sally!ut-ngp!shell!starr From: starr@shell.UUCP (Bob Starr) Newsgroups: net.micro.pc Subject: More on the EXEC function call Message-ID: <243@shell.UUCP> Date: Tue, 12-Feb-85 01:06:52 EST Article-I.D.: shell.243 Posted: Tue Feb 12 01:06:52 1985 Date-Received: Fri, 15-Feb-85 04:45:57 EST Organization: Shell Development Co., P&CS Dept., Houston TX Lines: 22 I am writing a program which must be able to execute another program from within my program, based upon a user supplied command. Using DOS function 4B works fine. For a while, I was merely using it to invoke a second copy of COMMAND.COM (god, I wish MicroSoft had seperated the code & data segments so this wasn't necessary). Anyhow, if I use function 4B to invoke a second COMMAND.COM, my specified command can use redirection. BUT, I decided I would try to eliminate the overhead of loading COMMAND.COM when a program was being invoked. Well, suprise! If you run function 4B to load a program which has redirection on the command line, it doesn't work! Could someone please tell me how I can inform DOS apriori that I wish all standard output (or input) to be redirected? Is IOCTL the way to go? If so, how is it done? Any help would be much appreciated. Thanks. Bob Starr @ Shell Development