home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / programm / 11824 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1014 b 

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!Germany.EU.net!infoac.rmi.de!news
  2. From: siebeck@infoac.rmi.de (Wolfgang Siebeck)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: question on spawning DOS from C prog
  5. Message-ID: <1iedifINNmoi@infoac.rmi.de>
  6. Date: 6 Jan 93 10:50:55 GMT
  7. References: <1993Jan5.212229.57639@ns1.cc.lehigh.edu>
  8. Organization: RMI Net - INFO.box systems
  9. Lines: 26
  10. NNTP-Posting-Host: infoac.rmi.de
  11.  
  12. jmt7@ns1.cc.lehigh.edu (JOHN M. TROIANO) writes:
  13.  
  14.  
  15. >For example, after spawning DOS the user would
  16. >see:
  17.  
  18. >            <Type EXIT to return to program>      <--this would appear
  19. >                                                     each time <RET> hit
  20. >            C:\
  21.  
  22. >    Is there, perhaps, a parameter to COMMAND.COM to do this?
  23.  
  24. In your function declare something like:
  25.  
  26.     static char prompt[]="PROMPT=<Type EXIT to return to program>$_$_$P";
  27.  
  28. and before the spawnl() do a
  29.  
  30.     putenv(prompt);
  31.  
  32. to get exactly what you want.
  33.  
  34. Greetings,
  35. Wolfgang
  36. --
  37. siebeck@infoac.rmi.de (Wolfgang Siebeck)
  38.