Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!news From: Unknown Newsgroups: comp.os.msdos.programmer Subject: Re: Command.com and a message Message-ID: <1990Dec5.122101.27203@aplcen.apl.jhu.edu> Date: 5 Dec 90 12:21:01 GMT References: <67560@unix.cis.pitt.edu> Sender: news@aplcen.apl.jhu.edu (USENET News System) Organization: Johns Hopkins University Lines: 38 In article <67560@unix.cis.pitt.edu>, kwgst@unix.cis.pitt.edu (Karol W Gieszczykiewicz) says: > > > 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 , 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. You don't need to do that. Before loading command.com, ... putenv("prompt=\"Exit\" to return to $_%%prompt%%"); ... You may not need the formatting commands, this is just off the top of my head. If they are not needed, change \" to just " and %% to %. This should give you a prompt of: "Exit" to return to C:\> at every prompt. Carl Schelin tcs@mailer.jhuapl.edu