home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
utility
/
pbaseiv.zip
/
P4DOS011.TIP
< prev
next >
Wrap
Text File
|
1991-12-16
|
2KB
|
49 lines
Many programs have commands that allow you to "shell out" to
DOS and then return to your work by typing EXIT. The problem
we encountered was that users were forgetting to type EXIT
and loading the program again, thus running out of memory.
Some programs, such as WordPerfect 5.1, change the DOS
prompt to remind you to type EXIT; others, like 1-2-3,
don't. If your program's in the latter group, here's a
simple way to add the right instructions. The sample batch
file below changes your prompt, loads 1-2-3, then restores
your original prompt after you exit the spreadsheet. If you
invoke DOS from within 1-2-3, you'll see a two-line prompt:
[Enter EXIT to return to 1-2-3]
C:\123>
The batch can be modified to load almost any program. (You
can copy the listing to a file by pressing the Alt-F key,
then edit it to suit your needs.)
Since the new prompt is stored in the environment and may be
bigger than your original one, make sure you have enough
space to hold it. You may have to add the line
SHELL=C:\COMMAND.COM /E:XXXX /P to your CONFIG.SYS file,
where XXXX is the amount of environment space you want. A
setting of 1024 should be more than sufficient.
Douglas J. Nakakihara
Simi Valley, California
Restoring your prompt
---- BEGIN LISTING ----
@ECHO OFF
ECHO Loading 1-2-3....
SET | FIND "PROMPT=" > C:\OLDPROMP.BAT
PROMPT [Enter EXIT to return to 1-2-3]$_$P$G
123
CALL C:\OLDPROMP
DEL C:\OLDPROMP.BAT
---- END LISTING ----
Title: Retrieving Your Precious Prompt
Category: DOS
Issue date: Dec 1991
Editor: Brett Glass
Supplementary files: NONE