🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7469

Re: question on spawning DOS from C prog

#7469
From: Wolfgang Siebeck
Date: Wed, 06 Jan 1993 10:50
26 lines
1051 bytes
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)
Technical Details
Message-ID: <1iedifINNmoi@infoac.rmi.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!Germany.EU.net!infoac.rmi.de!news
References: <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!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