home *** CD-ROM | disk | FTP | other *** search
-
- ┌──────────────────────────┐
- │ Miscellaneous Programs │
- └──────────────────────────┘
-
- This is a collection of small programs that I find useful,
- even if you might not (see if I care!).
-
-
- ┌────────────┐ This program checks if Norton DOS is installed on
- │ NDOSINST │ the system. If it is, the program will return exit
- └────────────┘ code = 0, otherwise exit code = 1. The program was
- written to be used in batch files (usually AUTOEXEC.BAT) in order
- to perform certain tasks if NDOS was installed.
-
- The program makes an INT $2F call, with the register entry:
-
- AX = $E44D
- BX = $00
-
- If NDOS is loaded it will return:
-
- AX = $44FF
- BX = version number (BL = major version, BH = minor version)
- CX = NDOS PSP segment address
- DL = NDOS shell number (0 for root shell, 1 for the second etc.).
- The shell number is incremented each time a new copy of NDOS
- is loaded, either in a different multitasker window (for
- example, DESQview), or via nested shells.
-
-
- ┌──────────┐ This program sets the keyboard typematic rate and delay.
- │ SETKEY │ It requires two parameters, R and D. The typematic rate
- └──────────┘ R is a value between 0 and 31, corresponding to a rate
- of 30.0 to 2.0 characters per second (see list below). The delay D
- is a value between 0 and 3, corresponding to a delay of 250 to 1000
- milliseconds.
-
- The program makes an INT $16 call, with the register entry:
-
- AH = $03
- AL = $05
- BL = Typematic rate
- BH = delay
- ┌─────────────────────────────────────────┬───────────────────────────┐
- │ Typematic rate in chars per second (BL) │ Keyboard delay (BH) │
- │ │ │
- │ BL Rate BL Rate BL Rate │ BH Delay (milliseconds) │
- ├─────────────────────────────────────────┼───────────────────────────┤
- │ $00 30.0 $0B 10.9 $16 4.3 │ $00 250 │
- │ $01 26.7 $0C 10.0 $17 4.0 │ $01 500 │
- │ $02 24.0 $0D 9.2 $18 3.7 │ $02 750 │
- │ $03 21.8 $0E 8.6 $19 3.3 │ $03 1000 │
- │ $04 20.0 $0F 8.0 $1A 3.0 │ │
- │ $05 18.5 $10 7.5 $1B 2.7 │ │
- │ $06 17.1 $11 6.7 $1C 2.5 │ │
- │ $07 16.0 $12 6.0 $1D 2.3 │ │
- │ $08 15.0 $13 5.5 $1E 2.1 │ │
- │ $09 13.3 $14 5.0 $1F 2.0 │ │
- │ $0A 12.0 $15 4.6 │ │
- └─────────────────────────────────────────┴───────────────────────────┘
- You can also set the fastest typematic rate and shortest delay with
- the parameter /FASTKEY.
-
- Usage example: SETKEY D=0 R=0 (= SETKEY /FASTKEY)
-
-
-
- ┌───────┐ Change Directory program with graphical display of dir-
- │ TCD │ ectory tree structure. Start it with TCD, optionally
- └───────┘ with the desired drive as extra parameter. The program
- will scan the directory structure and save the info to the file
- TREEINFO.TCD in the root directory.
-
- Use the up and down arrow keys to move in the directory tree,
- press F2 to re-scan the drive, F3 to change drive, Return to
- Goto the highlighted directory, and Escape to quit without
- changing directory.
-
-
- ┌───────┐ This is a Program Execution Timer, meaning that it
- │ TIM │ will check how long a program or command takes to
- └───────┘ execute.
-
- Start the program with:
-
- TIM Command
-
- where Command is any DOS-compatible command. TIM will first read
- the system time and then load a DOS-shell and execute the Command.
- When the Command is finished executing, TIM will again read the
- system time and calculate the difference.
-
-