Article View: comp.os.msdos.programmer
Article #7475Re: question on spawning DOS from C prog
From: Adam Kerrison
Date: Wed, 06 Jan 1993 13:01
Date: Wed, 06 Jan 1993 13:01
26 lines
1635 bytes
1635 bytes
In article 57639@ns1.cc.lehigh.edu, 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?
I dont think so. You can do this by setting the prompt correctly. I don't think
you can have a newline in a prompt so you would need lots of spaces (a bit wasteful
but such is DOS :-) ). Try something like this:
PROMPT=Type EXIT to return to program {.. lots of spaces ..} $p$g
>
> - John
Adam
===========================================================================
Adam Kerrison | Phone : +44 71 352 7774
Technical Support | Fax : +44 71 351 7834
MicroMuse Ltd | Personal E-mail: adam@micromuse.co.uk
London SW10 0RN | Support E-mail : support@micromuse.co.uk
===========================================================================
Technical Details
Message-ID:
<C0Fo6p.CCM@micromuse.co.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!pipex!bnr.co.uk!uknet!axion!micromuse!adam@micromuse.co.ukReferences:
<1993Jan5.212229.57639@ns1.cc.lehigh.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!bnr.co.uk!uknet!axion!micromuse!adam@micromuse.co.uk From: adam@micromuse.co.uk (Adam Kerrison) Newsgroups: comp.os.msdos.programmer Subject: Re: question on spawning DOS from C prog Message-ID: <C0Fo6p.CCM@micromuse.co.uk> Date: 6 Jan 93 13:01:36 GMT References: <1993Jan5.212229.57639@ns1.cc.lehigh.edu> Sender: news@micromuse.co.uk Reply-To: adam@micromuse.co.uk Organization: MicroMuse Ltd Lines: 26 Nntp-Posting-Host: warlock