home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!spool.mu.edu!agate!dog.ee.lbl.gov!hellgate.utah.edu!fcom.cc.utah.edu!tim.src.utah.edu!tim
- From: tim@tim.src.utah.edu (Tim Ma)
- Subject: Re: question on spawning DOS from C prog
- Message-ID: <tim.36.726368023@tim.src.utah.edu>
- Lines: 40
- Sender: news@fcom.cc.utah.edu
- Organization: University of Utah
- References: <1993Jan5.212229.57639@ns1.cc.lehigh.edu> <1iedifINNmoi@infoac.rmi.de>
- Date: Thu, 7 Jan 1993 00:53:43 GMT
-
- >Subject: Re: question on spawning DOS from C prog
- >Date: 6 Jan 93 10:50:55 GMT
- >jmt7@ns1.cc.lehigh.edu (JOHN M. TROIANO) writes:
- >
- >>For example, after spawning DOS the user would
- >>see:
- >> <Type EXIT to return to program> <--this would appear
- >> each time <RET> hit
- >> C:\
- >> Is there, perhaps, a parameter to COMMAND.COM to do this?
-
- Reply was:
- ------------------------------------------------------------------------
- >In your function declare something like:
- >
- > static char prompt[]="PROMPT=<Type EXIT to return to program>$_$_$P";
- >
- >and before the spawnl() do a
- >
- > putenv(prompt);
- >
- >to get exactly what you want.
- >
- >Greetings,
- >Wolfgang
- >--
- >siebeck@infoac.rmi.de (Wolfgang Siebeck)
-
- Is this possible? It was my understanding that 'spawn' called a new command
- shell so any changes in the environment would not be carried over.
-
- I've always used 'spawnl' with the 'e' suffix to set or pass on environment
- variables.
-
- Curiously,
-
- Tim Ma
- Associate Programmer
- University of Utah
- Email: tim@src.cppa.utah.edu
-