YESORNO Decision Utility Version 2.1 3-19-93 (c) 1992, 1993 DYNAMOUS Software. All Rights Reserved. 47 Kristin Dr. Rochester, NY 14624 Concept: Work - When turning on the PC, we wanted to choose whether or not we logged into the NOVELL Network and load WINDOWS. BBS - We wrote 2 separate batch files for each set of utilities used by the BBS. One batch file contains the decision utility so we could make the appropriate decisions. The other batch file omits the decision utility, to enhance unattended nightly maintenance. I tried several other utilities that provided the ability to react to a decision. They all fell short for one or more of the following reasons: ž The prompt had to be written as an ECHO command in the batch file and ECHO OFF had to precede the prompt. ž The programs required user interaction so they could not be used when the PC was unattended. ž The batch file would need to use the DOS CLS command to clear the screen if necessary. ž No tone was heard to alert the users to a decision prompt. ž The prompts lacked any color or frames to set them apart from the other text displayed. Introduction: Then YESORNO was written by DYNAMOUS Software to put more power in your batch files, here are the advantages of YESORNO: ž Displays your text without the ECHO commands from the batch file. The status of ECHO (ON/OFF) has no effect on YESORNO prompts. ž A default answer is used after a selectable period of time, to automate unattended operation. ž An optional switch clears the screen so the user can clearly see the prompt. ž Beeps are available for the prompts and input errors. ž Background and text colors are available to help make the prompt more noticeable. ž Single and double frames are available to make the prompts more professional looking. ž Help is built into the program and accessed with the "YESORNO /?" command. ž A configuration program is available to store your default configuration and enable the registered options. Optional Usage: The following options may be used on the command line to change the defaults of YESORNO. This will allow you to use YESORNO for your specific needs. C:\> YESORNO /Y /15 /t:"Text comment" /tc:n /tb:n /bt:x /be:x /f:x Where: /Y or /N The answer to the prompt if no key is pressed before the time-out. This is a required option. You must use either /Y or /N or the program will display the usage screen. /nn The amount of time in seconds for the user to enter a response to the prompt. /0 = never time out, maximum = 9999 This is a required option. You must enter the time to wait for the user to reply or /0 or the program will display the usage screen. /t:"Text Prompt" The text prompt to be displayed on the screen for the user. If the text contains spaces, you must enclose the text in double (") quotes. Example -- /t:"Do you want to Log In to the Network [Y/N]?" Any text not proceeded with a / will be displayed as entered, even if it is not contiguous. This is a required option. You must use a text prompt or the program will display the usage screen. /clr Optional argument to clear the screen before the text is displayed. Default: If /clr is not used the screen will scroll under normal DOS conditions. /tc:n The color of the text prompt.* Where n is a number between 0 and 15 or 255. See table for values. Example - /tc:14 { The text color would be yellow. } Default - the current DOS text color. /tb:n The color of the background for prompt.* Where n is a number between 0 and 7 or 255. See table for values. Example - /tb:1 { The background color would be blue. } Default - the current DOS background color. /bt:x Create a tone to alert the user to the prompt.* Where x is 'n' for no and 'y' for yes. Example - /bt:y { A tone will be heard when the prompt is displayed. } Default - No tone on prompt message. /be:x Create a tone to alert the user that an incorrect response was entered.* Where x is 'n' for no and 'y' for yes. Example - /be:y { A tone will be heard when an incorrect response is entered. } Default - No tone on an incorrect response. /f:x Frame the text prompt with a border.* Where x is 's' for a single, 'd' is for a double border and 'n' is for no border. Example - /f:s { The text prompt will be framed with a single border. Default - no border around the text prompt. Note: Item marked with the * are only availible after registering YESORNO with DYNAMOUS Software. You will also receive a configuration program to store your default configuration and enable the registered options. Colors: ŚÄÄÄÄÄÄÄÄÄÄÄÄÄÄĀÄÄÄÄÄÄÄÄÄĀÄÄÄÄÄÄÄÄÄÄÄÄÄÄĀÄÄÄÄÄÄæ ³ Colors ³ Value ³ Background ³ Text ³ ĆÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄ´ ³ BLACK ³ 0 ³ Yes ³ Yes ³ ³ BLUE ³ 1 ³ Yes ³ Yes ³ ³ GREEN ³ 2 ³ Yes ³ Yes ³ ³ CYAN ³ 3 ³ Yes ³ Yes ³ ³ RED ³ 4 ³ Yes ³ Yes ³ ³ MAGENTA ³ 5 ³ Yes ³ Yes ³ ³ BROWN ³ 6 ³ Yes ³ Yes ³ ³ LIGHTGRAY ³ 7 ³ Yes ³ Yes ³ ³ DARKGRAY ³ 8 ³ No ³ Yes ³ ³ LIGHTBLUE ³ 9 ³ No ³ Yes ³ ³ LIGHTGREEN ³ 10 ³ No ³ Yes ³ ³ LIGHTCYAN ³ 11 ³ No ³ Yes ³ ³ LIGHTRED ³ 12 ³ No ³ Yes ³ ³ LIGHTMAGENTA ³ 13 ³ No ³ Yes ³ ³ YELLOW ³ 14 ³ No ³ Yes ³ ³ WHITE ³ 15 ³ No ³ Yes ³ ³ NONE ³ 255 ³ Yes ³ Yes ³ ĄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĮÄÄÄÄÄÄÄÄÄĮÄÄÄÄÄÄÄÄÄÄÄÄÄÄĮÄÄÄÄÄÄŁ Shareware Notice: You may use this utility for a 30 day trial period. If you do not register within the trial period, please discontinue using this software. If you like YESORNO please consider registering this utility with DYNAMOUS Software. You will receive a registered copy of YESORNO and YESNOCFG to personalize your copy. This enables the 'registered options' and allows you to change the program defaults. We also include other shareware utilities we have written. To register, please send $5 (US) plus $3.50 (US) for media and US mailing to DYNAMOUS Software. If you wish to avoid the media and mailing costs, register with DYNAMOUS and then you may download your registered version on: "The Hat's Place BBS" (716) 594-5572 16.8K USR HST Dual Standard Site licenses discounts are available by contacting DYNAMOUS Software for more information. DYNAMOUS Software -- 47 Kristin Dr. Rochester, NY 14624