home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!Germany.EU.net!infoac.rmi.de!news
- From: siebeck@infoac.rmi.de (Wolfgang Siebeck)
- Newsgroups: comp.os.msdos.programmer
- Subject: Re: question on spawning DOS from C prog
- Message-ID: <1iedifINNmoi@infoac.rmi.de>
- Date: 6 Jan 93 10:50:55 GMT
- References: <1993Jan5.212229.57639@ns1.cc.lehigh.edu>
- Organization: RMI Net - INFO.box systems
- Lines: 26
- NNTP-Posting-Host: infoac.rmi.de
-
- 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?
-
- 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)
-