home *** CD-ROM | disk | FTP | other *** search
-
-
- BATCH FILE UTILITIES - VERSION 1.0
-
-
- BFU01.ARC should contain the following files:
- --------------------------------------------
-
- VIDEOCHK.COM SETCURSR.COM SETCOLOR.COM WAIT.COM
-
- FULLDATE.COM TIME12HR.COM TODAY.COM
-
-
-
-
- These programs were written to provide myself with a few more functions
-
- within DOS batch file processing. Technically they are very simple in
-
- nature and were meant to be that way. I had given copies of them to
-
- several friends who also found them to be useful. They suggested that
-
- I place them in the public domain. So, here they are. I hope that
-
- they can also provide you with some additional functions within batch
-
- file processing.
-
-
-
-
- The programs were written in Borland's Turbo Pascal. They are very
-
- short programs which consist mostly of DOS and/or BIOS interrupt calls.
-
- Each of these programs requires no dynamic space allocation and were
-
- compiled accordingly (i.e. these programs will not try to eat up all of
-
- your available memory). Each of these programs have been tested within
-
- the following environments:
-
-
- * PC DOS Version 2.1, 3.0 and 3.1
-
-
- * IBM PC, XT and AT
-
- COMPAQ Portables
-
-
- * IBM Mono and Color cards
-
- STB Mono/Color cards
-
- COMPAQ Mono/Color card
-
-
-
-
-
- ( page 1 )
-
-
-
-
- BATCH FILE UTILITIES - VERSION 1.0
-
-
- PROGRAM NAME / DESCRIPTION
- -----------------------------------------------------------------------
-
- VIDEOCHK.COM The purpose of this program is to determine which video
- adapter is currently in use and send a return code which
- can be examined by the DOS batch command: IF ERRORLEVEL.
- This program is very useful for determining which video
- drivers should be loaded.
-
- Return Codes
- --------------------------
- 0 = Mono Adapter in use
- 1 = Color adapter in use
-
-
- SETCURSR.COM The purpose of this program is to set and/or reset the
- cursor. The program accepts one optional command line
- parameter which is used to indicate the cursor type to
- be used. The optional parameter values are: N, B or O,
- where N = Normal, B = Block and O = Turn Cursor Off.
- These values may be typed in upper or lower case. If
- this program is executed with an invalid or no parm, the
- cursor setting will be defaulted to <N>ormal.
-
- Usage: A>SETCURSR {N, B or O}.
- -----
-
-
- SETCOLOR.COM The purpose of this program is to set and/or reset the
- foreground and background colors, specified by entering
- two command line parameters. If this program is
- executed with invalid or no parms, the following default
- colors will be used: ForeGround = 7, BackGround = 0.
-
- Color Number - Name
- -----------------------------
- 0 - Black
- 1 - Blue
- 2 - Green
- 3 - Cyan
- 4 - Red
- 5 - Magenta
- 6 - Brown
- 7 - Light Gray
- 8 - Dark Gray
- 9 - Light Blue
- 10 - Light Green
- 11 - Light Cyan
- 12 - Light Red
- 13 - Light Magenta
- 14 - Yellow
- 15 - White
-
- Usage: A>SETCOLOR Foreground# Background#
- -----
- A>SETCOLOR 15 1
-
-
- ( page 2 )
-
-
-
-
- BATCH FILE UTILITIES - VERSION 1.0
-
-
- PROGRAM NAME / DESCRIPTION
- -----------------------------------------------------------------------
-
- WAIT.COM This program is very similar to the DOS batch command:
- PAUSE. However, this program displays no message,
- allowing you to preceed it with an "ECHO" message of
- your choice. The program also excepts an optional
- command line parameter. This parameter can be any ASCII
- CHARACTER, which must be entered from the keyboard
- before the batch file will continue. If the program is
- executed with no command line parameter, then pressing
- ANY keyboard key will continue the processing.
-
- Usage: A>WAIT {ASCII character to "wait" for}
- -----
- A>WAIT *
-
- For the above example, processing will not
- continue until a `*' is entered from the
- keyboard.
-
-
- FULLDATE.COM The purpose of this program is to display the "full"
- current system date (i.e. Wednesday, January 1st, 1986).
- The foreground and background colors used for the
- display may be set using two optional command line
- parmameters. If the command line parameters are invalid
- or not entered, the following default display colors
- will be used: Foreground = 7, Background = 0.
- (See the Color Chart used by SETCOLOR.COM.)
-
- Usage: A>FULLDATE foreground# background#
- -----
-
-
- TIME12HR.COM The purpose of this program is to display the current
- time as a "normal" 12 hour display (i.e. 15:10:49 is
- displayed as 3:10:49 p.m.).
- The foreground and background colors used for the
- display may be set using two optional command line
- parmameters. If the command line parameters are invalid
- or not entered, the following default display colors
- will be used: Foreground = 7, Background = 0.
- (See the Color Chart used by SETCOLOR.COM.)
-
- Usage: A>TIME12HR foreground# background#
- -----
-
-
- TODAY.COM The purpose of this program is to display the "full"
- date and "12" hour clock on the same display line.
- The foreground and background colors used for the
- display may be set using two optional command line
- parmameters. If the command line parameters are invalid
- or not entered, the following default display colors
- will be used: Foreground = 7, Background = 0.
-
-
- ( page 3 )
-
-
-
-
- BATCH FILE UTILITIES - VERSION 1.0
-
-
- (See the Color Chart used by SETCOLOR.COM.)
-
- Usage: A>TODAY foreground# background#
- -----
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ( page 4 )
-
-
-