home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 17
/
CD_ASCQ_17_101194.iso
/
vrac
/
abatvw2.zip
/
ATXTFILE.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-07-08
|
5KB
|
126 lines
@ECHO OFF
echo off
AMSG +27 15 113 206 "HOW TO USE ASCII TEXT FILES WITH ABATMENU, AMSG AND AECHO"
ACLS +31
AECHO /@205:75
ECHO Typing long option lists to create large menus and
ECHO message prompts can quickly become impractical and cumbersome.
AECHO /@196:32
ECHO Since....
ECHO DOS only allows 127 characters on the command line and you may
ECHO want to create multiple or nested menus and message prompts,
ECHO AMSG and ABATMENU allow you to store option lists in text files.
AECHO /@196:32
ECHO You specify the text file that the utility program will reference
ECHO by passing its COMPLETE name including the extension as the
ECHO FIRST and ONLY option on the command line.
AECHO /@196:32
ECHO Like this........ABATMENU MyMenu.txt
ECHO or
ECHO AMSG MyMessage.txt
AECHO /@196:32
ECHO If the text file is not in the working directory
ECHO you will need to provide a complete path with the file name.
AECHO /@196:32
ECHO To pass a path name.....ABATMENU C:\textfiles\MyMenu.txt
AECHO /@196:32
AMSCROLL /pauz +27 26 A
ACLS /hz +11
AECHO /@205:75
ECHO To make text files for use with Abatmenu or Amsg create a
ECHO STRAIGHT ASCII text file with each option on a seperate line.
ECHO /@196:32
ECHO This way.....
ECHO +49
ECHO 15
ECHO 116
ECHO 123
ECHO 224
ECHO * Text Menu *
ECHO 1. Choose One
ECHO 2. Choose Two
ECHO 3. Choose Three
ECHO 4. Choose Four
ECHO 5. Exit
ECHO *******************
ECHO Abatmenu and Amsg use the the new line to separate each option
ECHO so you don't need to place quotation marks around arguments
ECHO containing more than one word in text files.
AECHO /@196:32
AMSCROLL /pauz +27 26 A
ACLS /vt +95
AECHO /@205:75
ECHO You can store one, some, or all of your option lists in a
ECHO text file by using Labels.
AECHO /@196:32
ECHO A Label is a word or set of characters preceeded by the @ character.
ECHO Examples: @Stereotype @Democrat @Republican @Perotian @etc..
ECHO You can then reference your options using the label.
AECHO /@196:32
ECHO "ABATMENU "MyMenu.txt @Computer_Geeks"
AECHO /@196:32
ECHO You need to enclose the text file and label names with quotes
ECHO so the program will associate the label with the file name.
ECHO Place the labels in your text file at the beginning of an
ECHO option set to reference it. You don't need a label for
ECHO the FIRST option set in a file, just use the file name.
AECHO /@196:32
AECHO "Insert labels like this......"
AECHO "(first option set)"
AECHO @alabel
AECHO "(second option set)"
AECHO @anotherlabel
AECHO "(last option set )"
AECHO @thirdlabel
AECHO /@196:32
AMSCROLL /pauz +80 26 A
ACLS /in +79
AECHO /@205:75
AECHO "Be careful not to use the same text file to store options for"
AECHO "different programs, because the number of arguments passed to"
AECHO "each utility is not congruent. If you do, you may get some"
AECHO "unexpected results."
AECHO /@196:32
AECHO "Here's a few more examples."
AECHO /@196:32
AECHO "ABATMENU options.txt"
AECHO AMSG /@34 "options.txt @firstlabel" /@34
AECHO ABATMENU /@34 "options.txt @secondlabel" /@34
AECHO AMSG /@34 "options.txt @lastlabel" /@34
AECHO /@196:32
AECHO "That's all there is to it."
AECHO "Abatmenu isn't case sensitive about file and label names"
AECHO "so you don't have to remember if you used capital letters."
AECHO "By using text files to store your options you can easily"
AECHO "modify or experiment with different menus and message prompts."
AECHO /@196:32
AECHO "By the way, if you're wondering how to make the @ character"
AECHO "Press the SHIFT and number 2 key at the same time."
AECHO /@196:32
AMSCROLL /pauz +116 26 A
ACLS +48 /blko
AECHO /@205:75
AECHO "TEXT FILES WITH AECHO"
AECHO /@196:70
AECHO "AECHO may be used to display ASCII Text files in a fashion"
AECHO "very similiar to the DOS MORE command. There are some inherent"
AECHO "advantages in using AECHO such as the ability to embed control"
AECHO "characters for each line of text. This allows you to display"
AECHO "multicolor text and graphic characters, unavailable with the
AECHO "DOS counterpart."
AECHO /@196:70
AECHO "The format for using text files is Aecho /t (Path)textfile"
AECHO "There are no labels when using text files with Aecho."
AECHO /@196:32
AECHO "You can use overriding attributes and positioning options"
AECHO "in front of the text file option and name to provide"
AECHO "defaults when displaying the text file. As stated above,"
AECHO "options may then also be embeded for control of each line"
AECHO "of the text file. Display pausing is automatic."
AECHO /@196:32
AECHO "Text file use can greatly expand the capabilities of each of"
AECHO "mentioned programs. Please, refer to the manual if any of the"
AECHO "topics covered here are still unclear."
AMSCROLL /pauz +63 26 A