home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / h / htmix20.zip / MISC.ZIP / MISC.DOC next >
Text File  |  1992-07-14  |  5KB  |  94 lines

  1.  
  2.                       ┌──────────────────────────┐
  3.                       │  Miscellaneous Programs  │
  4.                       └──────────────────────────┘
  5.  
  6.          This is a collection of small programs that I find useful,
  7.          even if you might not (see if I care!).
  8.  
  9.  
  10.          ┌────────────┐ This program checks if Norton DOS is installed on
  11.          │  NDOSINST  │ the system. If it is, the program will return exit
  12.          └────────────┘ code = 0, otherwise exit code = 1. The program was
  13.          written to be used in batch files (usually AUTOEXEC.BAT) in order
  14.          to perform certain tasks if NDOS was installed.
  15.  
  16.          The program makes an INT $2F call, with the register entry:
  17.  
  18.            AX = $E44D
  19.            BX = $00
  20.  
  21.          If NDOS is loaded it will return:
  22.  
  23.            AX = $44FF
  24.            BX = version number (BL = major version, BH = minor version)
  25.            CX = NDOS PSP segment address
  26.            DL = NDOS shell number (0 for root shell, 1 for the second etc.).
  27.                 The shell number is incremented each time a new copy of NDOS
  28.                 is loaded, either in a different multitasker window (for
  29.                 example, DESQview), or via nested shells.
  30.  
  31.  
  32.          ┌──────────┐ This program sets the keyboard typematic rate and delay.
  33.          │  SETKEY  │ It requires two parameters, R and D. The typematic rate
  34.          └──────────┘ R is a value between 0 and 31, corresponding to a rate
  35.          of 30.0 to 2.0 characters per second (see list below). The delay D
  36.          is a value between 0 and 3, corresponding to a delay of 250 to 1000
  37.          milliseconds.
  38.  
  39.          The program makes an INT $16 call, with the register entry:
  40.  
  41.            AH = $03
  42.            AL = $05
  43.            BL = Typematic rate
  44.            BH = delay
  45.          ┌─────────────────────────────────────────┬───────────────────────────┐
  46.          │ Typematic rate in chars per second (BL) │ Keyboard delay (BH)       │
  47.          │                                         │                           │
  48.          │  BL   Rate     BL   Rate     BL   Rate  │  BH  Delay (milliseconds) │
  49.          ├─────────────────────────────────────────┼───────────────────────────┤
  50.          │ $00   30.0    $0B   10.9    $16    4.3  │ $00    250                │
  51.          │ $01   26.7    $0C   10.0    $17    4.0  │ $01    500                │
  52.          │ $02   24.0    $0D    9.2    $18    3.7  │ $02    750                │
  53.          │ $03   21.8    $0E    8.6    $19    3.3  │ $03   1000                │
  54.          │ $04   20.0    $0F    8.0    $1A    3.0  │                           │
  55.          │ $05   18.5    $10    7.5    $1B    2.7  │                           │
  56.          │ $06   17.1    $11    6.7    $1C    2.5  │                           │
  57.          │ $07   16.0    $12    6.0    $1D    2.3  │                           │
  58.          │ $08   15.0    $13    5.5    $1E    2.1  │                           │
  59.          │ $09   13.3    $14    5.0    $1F    2.0  │                           │
  60.          │ $0A   12.0    $15    4.6                │                           │
  61.          └─────────────────────────────────────────┴───────────────────────────┘
  62.          You can also set the fastest typematic rate and shortest delay with
  63.          the parameter /FASTKEY.
  64.  
  65.          Usage example:  SETKEY D=0 R=0   (= SETKEY /FASTKEY)
  66.  
  67.  
  68.  
  69.          ┌───────┐ Change Directory program with graphical display of dir-
  70.          │  TCD  │ ectory tree structure. Start it with TCD, optionally
  71.          └───────┘ with the desired drive as extra parameter. The program
  72.          will scan the directory structure and save the info to the file
  73.          TREEINFO.TCD in the root directory.
  74.  
  75.          Use the up and down arrow keys to move in the directory tree,
  76.          press F2 to re-scan the drive, F3 to change drive, Return to
  77.          Goto the highlighted directory, and Escape to quit without
  78.          changing directory.
  79.  
  80.  
  81.          ┌───────┐ This is a Program Execution Timer, meaning that it
  82.          │  TIM  │ will check how long a program or command takes to
  83.          └───────┘ execute.
  84.  
  85.          Start the program with:
  86.  
  87.            TIM Command
  88.  
  89.          where Command is any DOS-compatible command. TIM will first read
  90.          the system time and then load a DOS-shell and execute the Command.
  91.          When the Command is finished executing, TIM will again read the
  92.          system time and calculate the difference.
  93.  
  94.