home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1995 November
/
PCWK1195.iso
/
inne
/
podstawy
/
dos
/
4dos
/
4uzytki
/
ez-btm11.exe
/
LOADER.ZIP
/
NB.BTM
< prev
next >
Wrap
Text File
|
1993-12-08
|
3KB
|
65 lines
: NB.BTM
: This is a batch file to load Nota Bene. It can be used as a model
: for loading various applications, if you need the following:
: (*) Retain the history created during shells from the application
: (otherwise, 4DOS will retain only the history created before
: the application was loaded, and the history created while
: you shell, but not when you shell again). This new history
: is also retained when the application is quitted.
: NOTE: This is no longer a problem in 4dos 5.x. Fixed accordingly.
: (*) Have the name of the currently loaded application(s) for the
: 4DOS prompt (defined in 4START.BAT).
: For Nota Bene, you will have the following prompt:
: [#1: nb]_D:path
: ('#1' meaning 'shell level')
: If you use the same method for other applications, when you load
: any of these then shell, all relevant application names
: will be indicated. For example, if SHEZ was loaded:
: [#2: shez(nb)]_D:path
: (*) Be able to type NB (instead of 'exit') while Nota Bene is loaded
: without a resulting second loading of Nota Bene.
: (*) Be able to pass various parameters to the application upon loading.
: In this batch, the switch 'M' will show the Multiset HELP feature,
: while 'B' will switch you back to the subdirectory from which you
: started Nota Bene (otherwise, Nota Bene stays in \NB).
: (*) Load Nota Bene via Shroom, a memory manager which can switch Nota Bene
: off to ramdrive if a large application is run during shell. This
: saves, of course, the loading-quitting-reloading chain.
C:
if %pgm==nb exit
if not %$d == %_lastdisk set $d=%_lastdisk
if %_4ver lt 5 (history > %$d:\history.log ^ history /f)
:Cd \nb
set pgm=nb
rem KSTACK.COM must be loaded via AUTOEXEC.BAT for the following
: switches to work.
: Switches:
: 'M' shows Multiset (Even-Zohar HELP feature)
: 'B' switches back to the subdirectory from which you
: started Nota Bene (otherwise, Nota Bene stays in \NB).
:set sh=lh shroom -q -s d:\
iff "%1"=="M" then
keystack F1 right right right right right ^ %sh c:\nb\NB.EXE
elseIff "%1"=="B" then
keystack "cd %_cwd" enter ^ %sh c:\nb\NB.EXE
else
%sh c:\nb\NB.EXE
endiff
:---------------------------quitting NB---------------------------------
@echo off
set pgm=
if %_4ver lt 5 gosub history
quit
:history ;; Only for versions prior to 5.x
iff exist %$d:\history.log then
history /f
history /r %$d:\history.log
del /q %$d:\history.log
endiff
return