Dec 152017
 
Three examples of creating menus using 4DOS batch commands. Both a simple function key menu, and two using the point-and-shoot %@select[] function are illustrated.
File MENUBTMS.ZIP from The Programmer’s Corner in
Category Batch Files
Three examples of creating menus using 4DOS batch commands. Both a simple function key menu, and two using the point-and-shoot %@select[] function are illustrated.
File Name File Size Zip Size Zip Type
GAMES.BTM 5131 1963 deflated
MAN.BTM 1201 650 deflated
READ.ME 1441 729 deflated
RFC.BTM 1480 699 deflated
RFC_LIST 2937 1027 deflated

Download File MENUBTMS.ZIP Here

Contents of the READ.ME file


This file contains three examples of menu systems built using the 4DOS
batch file language and built-in functions. The examples are:

** GAMES.BTM uses 4DOS line drawing feature to build an attractive
function key-based menu interface for program selection. My version
is used for a games menu, but the programs could be anything.

** MAN.BTM uses the 4DOS %@select[] function to allow selection of a file
from among those in a .ZIP file. The selected file is then extracted
into a file viewer. I use this for keeping infrequently referenced
utility .DOC files in an archive to minimize the space they take up.

** RFC.BTM also uses the 4DOS %@select[] function. In this case, I'm using
it for a .ZIP file of documents whose file names are not indicative of
their contents (numbered files, basically), so the menu selection is
driven off an external text file that gets updated manually when the
a new document is added to the .ZIP file. The file RFC_LIST is the
external used to drive the menu.

MAN and RFC also demonstrate use of the %@substr function to extract a piece
of a string to get the file name.

These files are fairly well commented, and should be understandable.
Hopefully the ideas presented here are useful to someone. Comments are
welcome. Feel free to modify and/or distribute these files freely.

Dave Lemire
Bit Bucket Software
January 3, 1992


 December 15, 2017  Add comments

Leave a Reply