🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Command.com and a message

#3938
From: Gunnar Dahlstrom
Date: Sat, 15 Dec 1990 18:39
34 lines
2023 bytes
In article <67560@unix.cis.pitt.edu>, kwgst@unix.cis.pitt.edu (Karol W Gieszczykiewicz) writes:
|> 
|> 	Greetings. I am a C programmer with a bit of 8088 assembly
|> 	"fooling around". I am writing a program that has to load
|> 	command.com (shell). It works, but I want it to display
|> 	a little message that reminds the user of what they did.
|> 	(just so they don't run my program again, instead of "exit"-
|> 	ing back to it).
|> 
|> 	I know it's possible because WordPerfect does it. Every time
|> 	one presses <enter>, after exiting to shell, a short message
|> 	appears, telling the user to type "exit" to return to
|> 	WP. I want to know how to chain in such a message. I don't
|> 	mind creating a modified copy of command.com and then running
|> 	it.
|> 
|> 	Anyone?
|> 
|> 	Take care. I will summarize.

WordPerfect have a "nice" solution they change the prompt!
So just change the environment variable prompt to look like this:

set prompt=Type EXIT to return

But you shold do this in your program i dont know wich language you are writing in, but in C it is simpel, use setenv funtion.

===============================================================================
				Gunnar Dahlstrom
			Chalmers University of Technology
			    Div. Building Technology
			   412 96 Gothenbourg, Sveden
			E-Mail: dahlstr@hus.chalmers.se
===============================================================================
Technical Details
Message-ID: <1990Dec15.183906.7594@afs-news.utc.chalmers.se>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mit-eddie!bloom-beacon!eru!hagbard!sunic!chalmers.se!afs-news!hus.chalmers.se!dahlstr
References: <67560@unix.cis.pitt.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mit-eddie!bloom-beacon!eru!hagbard!sunic!chalmers.se!afs-news!hus.chalmers.se!dahlstr
From: dahlstr@hus.chalmers.se (Gunnar Dahlstrom)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Command.com and a message
Message-ID: <1990Dec15.183906.7594@afs-news.utc.chalmers.se>
Date: 15 Dec 90 18:39:06 GMT
References: <67560@unix.cis.pitt.edu>
Sender: news@afs-news.utc.chalmers.se (News System)
Reply-To: dahlstr@hus.chalmers.se (Gunnar Dahlstrom)
Organization: Chalmers University of Technology
Lines: 34