Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!buwyatt%brock.cdn%ubc.csnet@RELAY.CS.NET From: buwyatt%brock.cdn%ubc.csnet@RELAY.CS.NET (Jamie Wyatt) Newsgroups: comp.lang.c Subject: Creating a New DOS SHELL from MSC 4.00 Message-ID: <9175@brl-adm.ARPA> Date: Fri, 4-Sep-87 11:14:45 EDT Article-I.D.: brl-adm.9175 Posted: Fri Sep 4 11:14:45 1987 Date-Received: Sat, 5-Sep-87 17:41:09 EDT Sender: news@brl-adm.ARPA Lines: 12 I am working on a project and I wish to allow the user to spawn to the dos shell to allow the use of DOS commands then when finished type 'EXIT' and return to my application. I have it working but the DOS environment is destroyed. Anything that was set before my program is called is OK but the remainder of the environment is destroyed (filled with garbage) so that no further 'sets' can be performed. This is a sample of what I did to get the shell up: