home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
diags
/
tsrsl104.zip
/
TSELECT.CFG
< prev
next >
Wrap
Text File
|
1991-10-01
|
5KB
|
134 lines
.......TSELECT.CFG...........for Version 1.01 of TSR-Select...........
.
. Quadrant Computer Systems May 1991 - Aug 1991
.
.All lines starting with a period are comments and are ignored.
.Blank lines are also ignored.
.
. If you are using the Editor in SELECTC, remember that F2 is Save,
. and the [ESC] key will exit the editor. If you exit before saving,
. any changes you made will be lost. Press the F1 key for help.
.
.
. FORMATTING THE CONFIGURATION FILE
.
. Menu Items begin with an asterisk (*)
. The menu item names longer than 30 characters are truncated.
. TSELECT will "grow" the width of the menu to accomodate up to 30.
.
. Short Cut key specifier line begins with $ (see below)
.
. All commands required prior to the executable begin with <
.
. All commands required after the executable begin with >
.
. The line which executes the program begins with +
. This line should contain the command (with any parameters)
. required to execute the program. The command must have the
. fully qualified drive and path in front of it, and the program
. extension must be correct. For example: DBASE TEST is NOT valid.
. C:DBASE.EXE TEST is NOT valid. C:\DBASE\DBASE TEST is NOT valid.
. C:\DBASE\DBASE.EXE TEST *is* valid.
.
. NOTE: You may also use '@' in place of '+'... using '@' will NOT
. check for the existence of the executable program... this is
. actually required if you want to execute an internal DOS command
. since there is no file for TSELECT to check for.
.
. As an example, the following menu item would begin with a
. change of directory to C:\DATA\DBASE, changing the path statement,
. executing DBASE, then returning the original drive/path, and
. resetting the path:
.
. *dBASE ; menu selection
. $1 ; position of short-cut character in *
. <ECHO OFF ; suggested for appearances sake
. <CLS
. <SET OPATH=%PATH%
. <PATH C:\DBASE
. <C:
. <CD \DATA\DBASE
. +C:\DBASE\DBASE.EXE ProgramX ; ProgramX is a .PRG program
. >PATH %OPATH%
. >SET OPATH=
.
. Immediately following the Menu Selection line (starts with *) is the
. element that tells TSR-Select which character in the Menu Selection line
. is to be the short-cut character, the key the user can press to select
. the item without having to first highlight the selection and press
. ENTER. If this is left out, the first character will be used. If
. the character chosen competes with a menu selection with the same
. short-cut key, when the user presses the key, only the first selection
. will ever be selected. The only way for the other selection to be
. executed is if the user highlights it and presses ENTER.
.
. Below are the real lines of this configuration file. The total
. number of lines allowed is 400. There is no specific limit of
. lines for any menu selection as long as the total is less than 400.
. Comment lines are not counted as part of the total.
.
*Mail
$1
<CLS
+Z:\MAIL.EXE
.
*Chat
$1
<CLS
+Z:\CHAT.EXE
.
*SetPrint
$2
<cls
+Z:\SETPRINT.EXE
.
*EndSpool
$1
<CLS
+Z:\ENDSPOOL.EXE
.
*LastMsg ; this is a comment... all characters after
$1 ; a semicolon are ignored.
<cls
+Z:\LASTMSG.EXE
>pause
.
*Send
$1
<cls
+Z:\SEND.EXE
>cls ; see explanation below as to why this is here
.
.*dBASE ; menu selection
.$2 ; position of short-cut character in *
.<ECHO OFF ; suggested for appearances sake
.<CLS
.<SET OPATH=%PATH%
.<PATH C:\DBASE
.<C:
.<CD \DATA\DBASE
.+C:\DBASE\DBASE.EXE
.>PATH %OPATH%
.>SET OPATH=
.>cls
.
. There is a bug in version Beta-01 through version 1.01 which will not read
. the last command line of the last menu entry (the >cls above). The work
. around is to put some harmless command as the last command line, e.g.,
. the >cls command above.
.
. If there are more than 15 entries, all entries after the 15th entry
. are ignored, and no error message is generated.
.
. If you have input only one entry then TSR-Select will not generate a
. pop-up menu, but will execute that one selection immediately after
. you press the hot-key. When exiting that selection, the user is
. returned immediately to the foreground application.
.
.
. WARNING: Do NOT attempt to use TSR-Select to execute a program that
. makes low-level modifications to the DOS file system.
. Programs to avoid include CHKDSK, disk de-fragmenters,
. and physical directory sorters like Norton's DIRSORT.
.