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

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!axion!micromuse!adam@micromuse.co.uk
  2. From: adam@micromuse.co.uk (Adam Kerrison)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: question on spawning DOS from C prog
  5. Message-ID: <C0Fo6p.CCM@micromuse.co.uk>
  6. Date: 6 Jan 93 13:01:36 GMT
  7. References: <1993Jan5.212229.57639@ns1.cc.lehigh.edu>
  8. Sender: news@micromuse.co.uk
  9. Reply-To: adam@micromuse.co.uk
  10. Organization: MicroMuse Ltd
  11. Lines: 26
  12. Nntp-Posting-Host: warlock
  13.  
  14. In article 57639@ns1.cc.lehigh.edu, jmt7@ns1.cc.lehigh.edu (JOHN M. TROIANO) writes:
  15. > For example, after spawning DOS the user would
  16. > see:
  17. >             <Type EXIT to return to program>      <--this would appear
  18. >                                                      each time <RET> hit
  19. >             C:\
  20. >     Is there, perhaps, a parameter to COMMAND.COM to do this?
  21.  
  22. I dont think so. You can do this by setting the prompt correctly. I don't think
  23. you can have a newline in a prompt so you would need lots of spaces (a bit wasteful
  24. but such is DOS :-) ). Try something like this:
  25.  
  26. PROMPT=Type EXIT to return to program {.. lots of spaces ..} $p$g
  27.  
  28. >                                                 - John
  29. Adam
  30. ===========================================================================
  31. Adam Kerrison                  | Phone : +44 71 352 7774
  32. Technical Support              | Fax   : +44 71 351 7834
  33. MicroMuse Ltd                  | Personal E-mail: adam@micromuse.co.uk 
  34. London SW10 0RN                | Support E-mail : support@micromuse.co.uk 
  35. ===========================================================================
  36.