home *** CD-ROM | disk | FTP | other *** search
- This is a collection of routines and files which I find useful on my
- COMPAQ Desk Pro Computer. They all assume that you are running under
- MSDOS Version 2.0, or later, on an IBM PC/XT/AT computer or an equi-
- valent "clone" with an 8086 or 8088 or equivalent processor.
-
- ------------------------------------------------------------------------
-
- ALERT
- This Turbo Pascal program generates a series of five warbling alert
- tones once a minute until a total of fifteen have passed. This can be
- useful when you include ALERT in a batch file to tell you that
- long-running program has finished.
-
- ALMANAC
- This Turbo Pascal program gets the current DOS date/time and displays
- almanac information as in the following example:
-
- 16:52h MDST, Saturday, 4 October 1986
- This is day 277 of the year 1986.
- Sunrise today is at 7:03h MDST.
- Sunset today is at 18:46h MDST.
-
- ARCHIVE.BAT
- This batch file copies those files in your default directory that are
- not found in Drive A: to Drive A:, thus archiving them. Files that are
- already on Drive A: are not overwritten.
-
- ASCII.LIS
- This file lists the 7-bit hexadecimal, decimal and octal codes.
-
- CHK4BOMB
- This program allows one to inspect an executable file for possible
- "Trojan Horse" bombs. It displays ASCII strings it finds in the
- executable code and checks for potentially dangerous disk activity.
- Please read CHK4BOMB.DOC for further information.
-
- CURLY
- This Turbo Pascal program converts comments bracketed by "(*" and
- "*)" to equivalent comments bracketed by "{" and "}" ("curly
- brackets"). This translation conforms to the requirements of
- Paragraphs 6.1.8 and 6.1.9 of ANSI/IEEE770X3.97-1983, "American
- National Standard Pascal Computer Programming Language".
-
- DATTIM
- This Turbo Pascal program displays the current date and time on the
- screen in the following format: "12:03h, Saturday, 10 May 1986".
-
- DATETIME
- This Turbo Pascal program gets the current date and time from the
- keyboard, using an unambiguous date format, and sets the DOS date and
- time accordingly.
-
- Acceptable date formats are: "04-JUN-86", "4JUN86", "4 JUN 1986" and
- so forth.
-
- Acceptable time formats are: "9:55:12", "9:55", "9.55", "9;55" and
- so forth.
-
- DETAB
- This Turbo Pascal program copies its input file to its output file
- while converting tab codes to equivalent double-space codes and
- deleting formfeed codes.
-
- DIRNAME
- This batch file displays a directory sorted by name.
-
- DUMP
- This Turbo Pascal program displays the contents of a file in hex and
- ASCII format.
-
- FF
- This 11-byte assembly language program sends a formfeed code to the
- line printer.
-
- FORMATA
- This batch files formats a floppy disk in Drive A:. It assumes that
- you have re-named FORMAT.COM to F0RMAT.COM.
-
- FORMATB
- Like FORMATA, this batch file formats a floppy disk in Drive B:. By
- using "FORMATA" and "FORMATB" to format your floppy disks, instead of
- "FORMAT A:" or "FORMAT B:", you are much less likely to accidentally
- re-format your default disk.
-
- FORMATAB
- This batch file allows you to format a series of floppy disks in
- Drive A: and Drive B: alternately, starting with Drive A:. This is a
- convenient way of formatting a box of disks, because you can be
- inserting a new disk in one drive while the computer is formatting in
- the other drive.
-
- LISTER
- This Turbo Pascal program reads an input file and generates a
- captioned listing file suitable for printing.
-
- MAXIM
- This assembly language program displays a randomly-selected quotation
- from a library of over 500 one-line quotations.
-
- MRKTIM
- This program marks the current time, in seconds since midnight, for
- subsequent use by the RUNTIM program. The information is stored in the
- Intra-Application Communications Area, memory locations 0:04FA through
- 0:04FF.
-
- NO.ANS
- This file responds with a "N" answer to the question "Do you want to
- format another file?" It is used by FORMATAB.BAT.
-
- PRETTYPR
- This Turbo Pascal program re-formats Pascal programs into a "pretty",
- standard format. It is useful in cleaning up a Pascal program after
- you have extensively re-worked it. PRETTY.PAS is an example of a
- "prettied" Pascal program, itself.
-
- RUNTIM
- This Turbo Pascal program displays the run time of an event marked by
- a prior call to MRKTIM. The information is stored in the
- Intra-Application Communications Area, memory locations 0:04FA through
- 0:04FF.
-
- SCAN
- This batch file scans one or more files for occurrences of a given
- string. Wildcards are accepted. Upper/Lower case differences are
- significant. Example: "SCAN *.PAS WRITE".
-
- SEARCH
- This Turbo Pascal program searches a file for all occurrences of an
- input string. Upper/Lower case differences are ignored. A blank or
- empty string ends the program.
-
- SORT80
- This Turbo Pascal program reads and sorts up to 6000 records of up to
- 80 characters each.
-
- SNAP
- This Turbo Pascal program takes a "snapshot" of the current display
- screen and writes it to the file, SNAP.IMG.
-
- UPDATE
- This utility, consisting of UPDATE.BAT, UPDAT.COM and UPDKILL.BAT,
- copies files from a source directory (or device) to a target directory
- (or device) in alphabetic order overwriting files on the target only
- when there are newer versions of the files on the source. For example,
- to update files from the current directory to disk A:, enter "UPDATE
- *.* A:".
-
- ------------------------------------------------------------------------
-
- To the best of my knowledge, all of the above files and programs are
- either in the Public Domain or are available for free, noncommercial,
- distribution and use. I wrote ALERT, ASCII, CURLY, DATTIM, DETAB,
- DIRNAME, DUMP, FF, FORMATA, FORMATB, FORMATAB, LISTER, MAXIM, MRKTIM,
- NO, RUNTIM, SEARCH and SNAP and I hereby dedicate them to the Public
- Domain. I wrote and hold copyright to Programs ALMANAC, DATETIME,
- SORT80 and UPDAT. (See the copyright notices in the source code of
- these programs.) ARCHIVE and SCAN are from "Running MSDOS" by Van
- Wolverton, 2nd Edit, Microsoft Press, Bellevue, Washington, 1985. The
- remaining programs I downloaded from local bulletin boards.
-
- Although I have taken great care in writing my programs and in down-
- loading and assembling the other programs, I make no warranty as to
- their suitability nor usefulness for any application, use or purpose
- and I hereby specifically disclaim any responsibility for any loss or
- damage resulting from the use of these programs, which are herewith
- furnished for you to use at your own risk, as you see fit.
-
-
-
- Harry M. Murphy, Consultant
- 3912 Hilton Avenue, NE
- Albuquerque, NM 87110
- Tel: (505) 881-0519
-
- 31 December 1986
-