home *** CD-ROM | disk | FTP | other *** search
- Sat 21-March-1992
-
- About TSUTLB in General (All rights reserved)
- =======================
-
- This package may be used and distributed freely for NON-COMMERCIAL,
- NON-INSTITUTIONAL, PRIVATE purposes, provided it is not changed in
- any way. (Repacking with another method is ok, though.) For ANY
- other usage, such as use in a business enterprise or a university,
- contact the author for registration. Uploading to bulletin boards is
- encouraged. Please do not distribute any part of this package
- separately.
-
- The programs are under development. Comments and contacts are
- solicited. If you have any questions, please do not hesitate to use
- electronic mail for communication.
- InterNet address: ts@chyde.uwasa.fi (preferred)
- Bitnet address: SALMI@FINFUN.BITNET
- Funet address: GADO::SALMI
-
- The author shall not be liable to the user for any direct, indirect
- or consequential loss arising from the use of, or inability to use,
- any program or file howsoever caused. No warranty is given that the
- programs will work under all circumstances.
-
- Timo Salmi
- Professor of Accounting and Business Finance
- School of Business Studies, University of Vaasa
- P.O. BOX 297, SF-65101 Vaasa, Finland
-
-
- CONTENTS:
-
- 1. Summary
- 2. Program Abstracts
-
-
- Timo Salmi UTiLities set B, release 2.0 (TSUTLB20) includes the
- * * ** * * * *
- following utility-type programs.
-
- TSUTLB is a stand-alone sequel to TSUTIL. There is also a third
- collection of these utility programs called TSUTLC, a fourth called
- TSUTLD and a fifth called ... (you guessed it :-) ... TSUTLE.
-
-
- 1. SUMMARY
-
- TSUTLB20 More command-like progs, T.Salmi
- Filename Comment
- -------- --------------------------------
- CHARS.EXE Character frequencies of a file
- DIRE.EXE Extended directory
- SETGRA.EXE Sets computer into graphics mode
- TOUCH.EXE Change date/time stamp of files
- TSPROG.INF List of PD programs from T.Salmi
- TSUTLB.INF Document
- TSUTLB.NWS News announcements about tsutlb
- VAASA.INF Info: Finland, Vaasa, U of Vaasa
- ---- ------ ------ -----
- 0008
-
- TSUTLB releases until TSUTLB14 were distributed under the name of
- TS2UTL.
-
-
- 2. PROGRAM ABSTRACTS
-
- CHARS (Ver. 1.2) Character frequencies of a file
- ================
-
- Usage : CHARS <source file> [statistics output file]
- or CHARS ?
-
- This program makes a statistics of the occurrence of the different
- characters in any type of file. The frequencies of the characters
- are given both in the ascending order of character ascii numbers and
- in the descending order of the frequencies. This is a Turbo Pascal
- 5.0 program using BlockRead for fast file handling, and quicksort
- for fast sorting of the frequencies.
-
- Release notes:
- Version 1.1 handles also ascii 255 correctly.
- Version 1.2 has some minor stylistic changes.
-
-
- DIRE.EXE (Ver. 1.3) Extended directory
- ===================
-
- Usage: DIRE [DirectoryMask]
- [/a(llocated size)] [/m(onth as text)] [/p(aging)]
-
- DIRectory Extended command displays the directory in a format
- similar to MS-DOS dir command. However, DIRE also displays the
- hidden files as well as shows the status of the files (d=directory,
- h=hidden, r=read-only). (The status of the archive bit is not
- shown.)
-
- Another difference compared to dir is that the file name and the
- extension are separated by a point, not a tab. Thus e.g. you would
- get DIRE.EXE rather than DIRE EXE. This makes a difference e.g.
- when you direct the directories to a file, and wish to search for a
- specific file name. This has been changed, however, in version 1.1
- to correspond to the Ms-Dos format. The Ms-Dos tabs are replaced by
- the more universal blanks.
-
- DIRE requires a stricter syntax of file names than dir. If you make
- a mistake, DIRE shows you examples of the correct syntax. The main
- rule is that you should either use no parameter, or enter the
- device, path, and file names, all explicitly. Examples of acceptable
- commands are:
-
- DIRE
- DIRE *.*
- DIRE A:
- DIRE A:\*.PAS
- DIRE A:\SUBDIR\*.EXE
- DIRE ..
- DIRE SUBDIR (Shows entries named subdir in the CURRENT directory!)
- DIRE SUBDIR\ (Shows entries in subdirectory subdir)
- DIRE A:SUBDIR\
- DIRE SUBDIR\*.EXE
- DIRE ..\SUBDIR\*.*
-
- Unlike dir DIRE can handle the wildcards * and ? also in directory
- names. Therefore DIRE SUBDIR and DIRE SUBDIR\ will (contrary to dir)
- show you different informations. The former will show if your
- default directory has a subdirectory named SUBDIR while the latter
- shows the contents of SUBDIR.
-
- The optional parameter /p will cause a pause at each full screen.
- E.g.
- DIRE *.PAS /p
- DIRE /p
- The /p parameter must be preceded at least by one blank.
-
- DIRE has been compiled with Borland's Turbo Pascal Version 5.0.
-
- See DIRF in package TSUTLC for a directory program with more
- features. DIRF practically outdates DIRE.
-
- Release notes:
- Version 1.1: The file name extensions have been aligned to start
- from the same column. The date-stamp of the files also shows the
- weekday.
- Version 1.2: Added the [/a(llocated size)] and [/m(onth as text)]
- switches. Added the code s for system files in the listing.
- Version 1.3: Rewrote, or rather took from my other directory
- programs the routines to handle the file masks. Thus the searchname
- convention for DIRE is much closer to MsDos DIR, as it should.
-
-
- SETGRA.EXE (Ver. 1.2) Sets computer into graphics mode
- =====================
-
- Usage: SETGRA <graphics driver selection>
- or: SETGRA ?
-
- Options:
- Def CGA MCGA EGA EGA64 EGAMono IBM8514 HercMono ATT400 VGA PC3270
-
- This program sets your computer in a graphics mode. It can also be
- used to to restore the textmode by giving the program call without
- any parameters.
-
- There are two common reasons for wanting to be able to invoke the
- graphics mode: 1) There are some programs which require that they
- are called in the graphics mode. 2) You may want to experiment with
- your graphics capabilities.
-
- You can let SETGRA identify your graphics drivers by using Def as
- the parameter in the program call. Or you can experiment which
- graphics drivers your machine can handle by selecting the driver
- from the list. Notice, however, that selecting a graphics driver
- which your machine cannot handle may cause a system crash and you
- then have to reset your machine.
-
- IBM8514.BGI belongs to Borland International and is attached to
- SETGRA.EXE in accordance with Borland's No-Nonsense License
- Statement. IBM8514.BGI is needed (in the program directory) if you
- want to invoke the IBM-8514 graphics.
-
- Release notes: Version 1.1: The IBM8514.BGI is no longer needed
- separately, and has thus been omitted. I have now linked (also) this
- driver into the program code. Since I have not had an access to PC
- with IBM8514 graphics mode, I cannot be absolutely certain that this
- option really works. (The others do, and I do not see why this
- wouldn't, so it probably won't.)
- Version 1.2: Still wondering about the IBM8514 graphics.
-
-
- TOUCH (Ver. 1.6) Change date/time stamp of files
- ================
-
- Usage: TOUCH filename [(new date dd-mm[-[yy]yy]) (new time hh:mm[:ss])]
- [/n(o confirm)] [/fFileName2 (stamp from)]
- or: TOUCH ?
-
- TOUCH changes the datestamp and timestamp of a files. Wildcards and
- paths are allowed. If you omit the date and the time, the current
- date and time are used. You can also apply 'today' in the date, and
- 'now' in the time. TOUCH asks for your confirmation before changing
- the stamps.
-
- ╔═════════════════════════════════════════════════════════════════════════╗
- ║ WARNING: DON'T CHANGE THE DATE NOR THE TIME STAMPS OF FILES UNLESS YOU ║
- ║ HAVE A GOOD REASON FOR IT. If you do not know what these reasons are, ║
- ║ then do not use this program! ║
- ╚═════════════════════════════════════════════════════════════════════════╝
-
- The accuracy of the time stamp is ±1 second (feature of Turbo Pascal
- time packing). Hence the last second may have a slight deviation.
-
- Release Notes:
-
- Version 1.1: Some messages have been corrected.
-
- Version 1.2: The new /n switch can be used to turn touch
- confirmation off. The year can now also be given as two digits only.
-
- Version 1.3:
- - The confirmation [y,n,q] no longer requires pressing the enter
- key.
- - Keywords 'oldate' and 'oldtime' are available for added
- flexibility.
- - The date can be given without the year as day-month. The current
- year is then the default.
- - Date can use . and / along with the former -
- - Time can use . along with the former :
-
- Version 1.4:
- - Corrected a stupid blunder which took answering no as answering
- yes.
-
- Version 1.5:
- - Added the option (switch /fFileName2) to "copy" the date/time
- stamp of another file to the target file.
- - Corrected the bug that prevented the program working properly when
- the /n (no confirm) switch was set on.
- - Improved some of the error messages.
- - Ensured that reserved names (like PRN, NUL etc) cannot be touched.
- - Ensured that system files cannot be touched. Earlier only hidden
- and read-only files were detected.
- - TOUCH now also displays the names read-only, hidden, and system
- files if wildcards indicate any of them (but does not try to touch
- them).
-
- Version 1.6:
- - The month can now be given as a three letters. Thus examples of
- acceptable dates include 21-3-92 21-Mar-92 21/03/1992 21.3.92
- today oldate.
-