home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!utoday!jaflrn!jaf
- From: Jon Freivald <jaf@jaflrn.UUCP>
- Newsgroups: comp.lang.c
- Subject: Re: How to run a program from another program using Turbo C??
- Message-ID: <yRkPVB4w164w@jaflrn.UUCP>
- Date: Sun, 13 Dec 92 01:48:45 EST
- References: <162.2B2709C4@business.fidonet.org>
- Organization: The Wizzard's Cave, East Meadow, NY
- Lines: 18
-
- Mike.Tedder@f181.n363.z1.fidonet.org (Mike Tedder) writes:
-
- > printf("\nShelling to DOS...\n");
- > spawnlp(P_WAIT,"COMMAND.COM",NULL);
-
- Ah! You are one of the many culprits -- I don't use, and don't like
- command.com!!! Please do the following instead:
-
- spawnlp(P_WAIT,getenv("COMSPEC"),NULL);
-
- In this manner, I get my native (& much nicer) command interpreter!!!
-
- Jon
-
- =============================================================================
- Jon Freivald ( jaflrn!jaf@uunet.UU.NET )
- Nothing is impossible for the man who doesn't have to do it.
- =============================================================================
-