home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / HILFEN / PACKER / DIET / DIET110A.DOC < prev   
Text File  |  1993-12-01  |  28KB  |  695 lines

  1.   ************************************************************
  2.              An effective use of DIET version 1.10a
  3.                ------  by Teddy Matsumoto ---------
  4.   ************************************************************
  5.  
  6.   1. Let's try DIET!
  7.   A new revolution in file compression technology is made by TSR mode.
  8.   DIET.EXE is a file compression utility as well as a file utility to
  9.   use compressed files. Diet can compress executable files and can
  10.   execute them as LZEXE or PKLITE. WHAT is REALLY NEW in this program
  11.   is to compress DATA files, too.
  12.  
  13.   Yes, we do have to decompress the data file to use them if they
  14.   are in compressed form. And that's what actually happens.
  15.   If you let DIET stay as a TSR program, then you don't have to
  16.   care about whether data files are compressed or not. Let us try some
  17.   examples' first.
  18.  
  19.   2. The simplest and the most effective use of DIET.
  20.  
  21.   A rough classification of files of DOS may be in two categories,
  22.   namely executables and data files. The former activates the later
  23.   in general.
  24.  
  25.   The number of files on your disk of the later category is greater
  26.   in most of the cases than the former.
  27.   DIET can compress both categories of files, but these two categories
  28.   behave differently. Executable files are compressed with some self
  29.   -extracting header and decompressed on the memory to the original
  30.   format. Naturally there are executable files with overlays or files
  31.   which overwrite itself. Data files on the other hand, have to be
  32.   restored to the original form when they are referred from the
  33.   executable files. The process is carried out manually or by batch
  34.   mode ordinarily.
  35.  
  36.   The revolutionary idea of DIET is that the program takes care of
  37.   expansion and compression automatically while you are not conscious
  38.   of what's really going on! If you are reading this file with DOS
  39.   command MORE.COM then stop it. And try:
  40.  
  41.          Diet MORE.COM  -------MORE.COM is compressed.
  42.          Diet diet110a.doc ----this document will be compressed.
  43.          Diet -z -p  ----------let diet stay on memory.
  44.                                If you have EMM.SYS, then you
  45.                                will see diet uses 1 page of EMS.
  46.          more < diet110a.doc -- to read the compressed file with
  47.                                compressed COM file, a pager.
  48.  
  49.   How do you like it? Don't forget to type finally,
  50.          "diet -zr"
  51.   to let TSR part detached from your memory. If you're a man of
  52.   curiosity, try CHKDSK twice, when DIET is on the memory and off
  53.   the memory to know the size of TSR part of DIET.
  54.  
  55.   When DIET is stay resident on your memory, you can do your normal
  56.   work as if none of your file is compressed by DIET. There were many
  57.   files with overlays which could not be compressed by LZEXE, PKLITE
  58.   or by earlier version of DIET. The TSR mode DIET will handle these
  59.   files easily without letting you be conscious of them being in
  60.   compressed form.
  61.   TSR mode of DIET has a very strong power and control over the
  62.   programs. However, if you are anxious of any kind for the TSR mode,
  63.   please start using DIET with non-TSR mode, until you could get a
  64.   full understanding of its principle of actions in non-TSR mode.
  65.   Diet is worth using even in nonresident mode only.
  66.  
  67.   Use of DIET, non-TSR mode.
  68.   ~~~~~~~~~~~~~~~~~~~~~~~~~~
  69.   Type DIET to see all the command and options available.
  70.   There are  very few commands you have to remember in the non-TSR mode
  71.            -l,-r and -ra
  72.   are the all you need to know now.
  73.  
  74.   Let us now compress an application software. As an example we take
  75.   QH.EXE and RM.EXE, accompanying file for MSC ver 6.00. If you do not 
  76.   know the programs, you do not need to know  what they are. 
  77.   
  78.   RM       EXE    33337   2-20-90   5:22a
  79.  
  80.   Let us first type 'rm -h' to see the help-screen of RM.EXE.
  81.   --------------------------------------------------------
  82.   Microsoft File Removal Utility.  Version 1.01    
  83.   Copyright (C) Microsoft Corp 1987-90. All rights reserved.
  84.     Usage: RM [/help] [/ikf] [/r dir] files
  85.          ............................
  86.    'rm' terminated abnormally.  Exit status = 1
  87.   Real time in seconds: 0.330
  88.   ---------------------------------------------------------------
  89.   The last line is just an approximate time measured to see the
  90.   help screen. Now you compress RM.EXE with DIET by 'diet rm.exe'.
  91.   ---------------------------------------------------------------
  92.   <<<< exciting file slimming exerciser 'DIET' version 1.10a >>>>
  93.        .... copyright(c) 1991,4/1    by Teddy Matsumoto ....
  94.  
  95.     Compress 'RM.EXE' .........
  96.     Success! (33337 to 22192 bytes)
  97.   --------------------------------------------------------------
  98.   The file is compressed to about 2/3 of the original. You may
  99.   execute RM.EXE from this compressed file.
  100.   --------------------------------------------------------------
  101.   'rm' terminated abnormally.  Exit status = 1
  102.   Real time in seconds: 0.490
  103.   --------------------------------------------------------------
  104.   That is, you just need a fraction of a second to expand the file
  105.   to the original size and execute;  0.490-0330=0.16 seconds.
  106.   When you deal with a file with larger size, the you gain more space
  107.   to store the file, but you need more time to expand. 
  108.  
  109.      Compress 'QH.EXE' ...............................
  110.      Success! (120005 to 76976 bytes)
  111.  
  112.   This is a significant gain in size, but you will certainly feel
  113.   some delay in time before you see the screen.
  114.  
  115.   There are similar utilities PKLITE and LZEXE with this executable
  116.   file compression utility. DIET differs from other utilities in 
  117.   its capability to compress data files. However, you must know
  118.   DIET in its TSR mode in automatic compression and decompression
  119.   of data files. In the following examples, MICROSOFT WORKS is used
  120.   to illustrate the functions of DIET.
  121.  
  122.   Files with Overlays.
  123.   ^^^^^^^^^^^^^^^^^^^
  124.   Now let us move to the directory c:\works where you are supposed to
  125.   setup the Microsoft Works. Let us try to compress the main executable
  126.   WORKS.EXE with DIET.EXE. The following message will appear.
  127.   ------------------------------------------------------------
  128.    <<<< exciting file slimming exerciser 'DIET' version 1.10a >>>>
  129.        .... copyright(c) 1991,4/1    by Teddy Matsumoto ....
  130.  
  131.    Compress 'WORKS.EXE' - file size mismatch! (may be overlay file)
  132.    Use -V or -I option to continue to process.
  133.  
  134.   to compress EXE file together with overlay or help files by
  135.   wild card specification:
  136.          diet -v works.*
  137.   ------------------------------------------------------------
  138.   <<<< exciting file slimming exerciser 'DIET' version 1.10a >>>>
  139.         .... copyright(c) 1991,4/1    by Teddy Matsumoto ....
  140.  
  141.         Compress 'WORKS.EXE' (overlay mode) ...........................
  142.        ...............................................................
  143.         Success! (382430 to 294903 bytes)
  144.         Compress 'WORKS.OVL' ..........................
  145.         Success! (100922 to 83327 bytes)
  146.  
  147.         Compress 'WORKS.HLP' .................................
  148.         Success! (132552 to 77430 bytes)
  149.   ------------------------------------------------------------
  150.   
  151.   Small Files with -b Option.
  152.   ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  153.   There are other files you can't compress. WORKS.PIF  and
  154.   WORKS.INI. To compress these files, try 'diet -b works.*'.
  155.   Note, that DIET accepts wild cards and multiple file names
  156.   on a command line like ' diet -b works.ini works.pif'.
  157.   <<<< exciting file slimming exerciser 'DIET' version 1.10a >>>>
  158.        .... copyright(c) 1991,4/1    by Teddy Matsumoto ....
  159.  
  160.   Compress 'WORKS.INI' .
  161.   Success! (52 to 47 bytes)
  162.  
  163.   Compress 'WORKS.PIF' .
  164.   Success! (369 to 108 bytes)
  165.  
  166.   L option To list DIETed files.
  167.   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  168.   To see files compressed by DIET you type  'diet -l' to see:
  169.   ------------------------------------------------------------------
  170.     <<<< exciting file slimming exerciser 'DIET' version 1.10a >>>>
  171.         .... copyright(c) 1991,4/1    by Teddy Matsumoto ....
  172.   ------ listing of DIET files matched with '*.*' ------
  173.   WORKS.EXE  WORKS.HLP  WORKS.OVL WORKS.INI WORKS.PIF      
  174.   ------------------------------------------------------------------
  175.   
  176.   Files DIET fail to compress.
  177.   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  178.   Try 'diet THESAR.LEX'.
  179.    ------------------------------------------------------------
  180.       Compress 'THESAUR.LEX' ........................................
  181.        ...............................................
  182.       Compressing failed! (329707 to 348707 bytes)
  183.    ------------------------------------------------------------
  184.   The file itself seems to be compressed by some other method already.
  185.   Generally, diet will fail to compress files with extensions:
  186.                   .ARC, .ARJ, .LZH, .PAK, .ZIP
  187.   These are compressed in themselves and cannot be compressed any more.
  188.   This does not mean that ARC, ARJ, LHA, PAK or PKZIP cannot compress
  189.   files compressed by DIET.
  190.   DIET will not compress executable files already compressed by similar
  191.   utilities as PKLITE or LZEXE.
  192.  
  193.   There are certain exceptional TSR programs which will conflict with
  194.   DIET.EXE. The files compressed by earlier versions of DIET.EXE bear
  195.   no marks that they are compressed and will be further compressed by
  196.   this new version, but the file will fail to execute. This version
  197.   will be compatible with the versions 1.01a up on.
  198.  
  199.   If you type 'works', then you will see messages :
  200.   ------------------------------------------------------------------
  201.   DIET file!
  202.   DIET file!
  203.   'works' terminated abnormally.  Exit status = 36
  204.   Real time in seconds: 0.170
  205.   ------------------------------------------------------------------
  206.   and you see the program abort. This is because WORKS.EXE cannot
  207.   load its overlay module WORKS.OVL. Proceed to read DIET in TSR mode.
  208.  
  209.  DIET in TSR mode.
  210.  ================
  211.   To let DIET stay on the memory, you use -Z option:
  212.              diet -Z
  213.   You will see a message "diet stayed on the memory", and if you
  214.   have EMM.SYS in your config.sys file, you will see, also,
  215.   "EMS page 1 used by diet". That is, DIET's resident part resides
  216.   mainly in EMS except for only a small part of the program.
  217.   You start with the following DIETed files.
  218.   
  219.   ------ listing of DIET files matched with '*.*' ------
  220.   WORKS.INI      WORKS.EXE      WORKS.OVL      WORKS.PIF      WORKS.HLP     
  221.   
  222.   Now WORKS wakes up if you type 'works', you will see the screen
  223.   slower perhaps 10 or more seconds than usual. Then just quit from 
  224.   WORKS and check the list of DIETed files. You will notice 
  225.   WORKS.INI is no longer compressed, and its size in the original 
  226.   size before compression.
  227.  
  228.    ------ listing of DIET files matched with '*.*' ------
  229.    WORKS.EXE      WORKS.OVL      WORKS.PIF      WORKS.HLP     
  230.  
  231.    Now you see resident part of DIET hooks necessary files to
  232.    activate the program WORKS. It keeps the files opened in
  233.    Read mode in their original sizes and expand the files opened
  234.    in their original sizes, so that DIET can transact these files.
  235.  
  236.    You can edit or compute files opened from Works from their
  237.    compressed state and expand and rewrite them in uncompressed
  238.    form. You could keep them compressed by typing 'diet *.*'if 
  239.    you wish. However, here is a better idea!
  240.  
  241.    Auto recompress mode.
  242.    ^^^^^^^^^^^^^^^^^^^^^
  243.    This mode is supported from this version on. You can edit or
  244.    modify compressed files automatically opened up and save them
  245.    as they are in COMPRESSED form.
  246.  
  247.    First prepare 'CONFIG.SYS and AUTOEXEC.BAT files NOT
  248.    compressed by DIET.EXE. You may compress COMMAND.COM if you
  249.    wish. The system will boot with compressed COMMAND.COM.
  250.  
  251.    Prepare EMM.SYS or any other equivalent for
  252.         device=emm.sys
  253.    or by hardware setup program in CONFIG.SYS so that the resident
  254.    part of DIET.EXE will reside in Expanded Memory. Next insert a
  255.    line in AUTOEXEC.BAT file '\bin\diet -z -p', meaning DIET.EXE
  256.    being resident in memory, being prepared to compress files once
  257.    opened in read-write mode. Another line set TMP=e:\, where the
  258.    drive 'E:' is supposed to be a high speed memory device such as
  259.    a ramdisk or a hardram.
  260.  
  261.    When you boot up your system, then you will see a message:
  262.    ------------------------------------------------------------
  263.    <<<< exciting file slimming exerciser 'DIET' version 1.10a >>>>
  264.       .... copyright(c) 1991,4/1    by Teddy Matsumoto ....
  265.       Stayed on memory! (use EMS 1 page)
  266.       auto recompress : on (with messages)
  267.       temp. directory : E:\
  268.    ------------------------------------------------------------
  269.  
  270.   You may edit file readme.wps. Works.exe contains a word-processor
  271.   as a part of its function and suppose you finished editing and
  272.   saved the file. If you are really working with WORKS.EXE, you must
  273.   quit from this software.
  274.  
  275.   When you quit, watch carefully the screen to capture the message
  276.  
  277.      Compress README.WPS......
  278.      Success ! (27334 to 19345 bytes)
  279.  
  280.   Yes, that's the  DIET in action, DIET expanded the compressed
  281.   file readme.wps and edited in the expanded form, saved as it is.
  282.   Then when the process terminates, DIET is hooked up and compressed
  283.   the file opened for read and write.
  284.  
  285.  
  286.  
  287.   3.Basic Functions of DIET.
  288.   ==========================
  289.   There are 4 basic functions of DIET.exe,i.e.
  290.          to COMPRESS files:
  291.          to DECOMPRESS compressed files: -r -ra -v -i -b options;
  292.          to make DIET terminate and stay resident: -z,-za,-zd -zr -p 
  293.          options
  294.          and
  295.          to list files or to test for compressed: -l -c -m options.
  296.  
  297.   Usage:  DIET [options] [file_names].
  298.   Options: -r,-ra,-v,-i,-p,-z,-za,-zd,-zr,-o,-t,-i,-m, -b or -a.
  299.   You may use '-' of '/' as the switch-character as you prefer.
  300.   If you do not specify option, then the function is to compress.
  301.   Or if you don't specify any option nor file name, then diet
  302.   will display the help screen.
  303.   File_Names: You can't omit file name input except for -l option.
  304.   You can use WILDCARDS and MULTIPLE filenames on the command line.
  305.  
  306.   File Compression: If none of the options -l,-r,-ra,-z,-za,-zd and -c
  307.   is specified, Diet compresses specified file(s), except when
  308.   the given file is already compressed by DIET or the extension
  309.   is LZH. Different headers will be attached to compressed files
  310.   according to the extensions COM, EXE or ELSE respectively.
  311.  
  312.   IMPORTANT NOTE. DIET will overwrite on the original files except
  313.   with -o option. The storage space save DIET makes no backups in
  314.   principle. If you are not sure of the result, please take a
  315.   backup of the file(s). You will be assured of the safety
  316.   precautions designed in this software after using it for some
  317.   period of practice. However we strongly recommend to take
  318.   backup of files when you use with other TSR programs and when
  319.   your available memory is not large enough.
  320.  
  321.   The dynamic Lempel-Ziv method adopted in the software may fail
  322.   to compress files compressed with other tools. The success or
  323.   failure in compression is determined by the number of clusters
  324.   a file needs for its storage.
  325.  
  326.   File Decompression: With -r or -ra option, DIET decompresses files
  327.   it had compressed. With '-r' option files with extensions
  328.   EXE and COM remain compressed and other files are restored.
  329.   Namely, this is to restore all the data files to the original.
  330.   With '-ra' option, you could restore all.
  331.  
  332.   TSR On/Off option. '-z' ,'-zr'.
  333.           DIET -z
  334.   will announce either "stayed on memory' and "removed from memory".
  335.   When you compressed COMMAND.COM or when you compressed some
  336.   overlay files, you need DIET to be resident on, memory.
  337.   I recommend you to write a line "diet -z" in your autoexec.bat
  338.   file, if you are an expert DIETER.
  339.   
  340.   You may change the size of resident part of DIET by specifying
  341.   positive integers from 1 to 9 after '-z' like:
  342.           DIET -z8 (default value is 2).
  343.   If you increase the number, the resident part grows in size with
  344.   faster compress-decompress actions. DIET uses 1 page from EMS
  345.   (Lotus-Microsoft ) if it finds one. The size of the resident
  346.   part is reduced by the EMM.sys utility.
  347.   
  348.   IMPORTANT NOTE. This is not only for DIET, but if you use multiple
  349.   TSR programs, be careful to unload according to the
  350.   reverse order they were loaded into the mammary.
  351.  
  352.   Temporary Enable/Disable TSR part of DIET.
  353.       DIET -zd  disables resident part of DIET without unloading.
  354.       DIET -za  enables resident part of DIET without reloading.
  355.  
  356.   The second command restores the resident DIET when an
  357.   interrupt was received from keyboard or from any other device's.
  358.   Remember this switch, when you pressed Ctrl-C or Ctrl-Break
  359.   while DIET had been acting.
  360.  
  361.   LIST files compressed with DIET.
  362.          DIET -L
  363.   will list files compressed with DIET. You may skip wild card
  364.   for the option.
  365.  
  366.   Check Files Compressed by DIET.
  367.          DIET -C <file_name >.
  368.   Check the file if it is compressed by diet, and checks CRC for
  369.   the integrity.
  370.   Backup Files, Output Directories.
  371.   By default, DIET overwrites files by compressed equivalent with
  372.   the same name. So if you want to back up the files before you
  373.   apply DIET by '-o' option.
  374.  
  375.   <Example 1>. You are not on DRIVE A: and you want the compressed
  376.    file of alpha.dat on A: with the same name on your current
  377.    directory:
  378.  
  379.      DIET -O A:alpha.dat.
  380.  
  381.   <Example 2>. Compress the file alpha.dat on the current directory
  382.     compressed, and record it on the directory C:\TEMP:
  383.  
  384.       DIET -OC:\temp\ alpha.dat
  385.           ^          ^
  386.     Please note the positions of the spaces and back slashes.
  387.  
  388.   <Example 3>. beta.dat has been compressed by DIET on the current
  389.     directory. Decompress this file and record it on the root
  390.     directory with the name alpha.dat:
  391.  
  392.            DIET -R -O\alpha.dat beta.dat
  393.  
  394.    Specify Directory for temporary files:
  395.     By default, DIET makes temporary files on the current directory.
  396.     It is recommended to specify the directory on which temporary
  397.     files to be made with the TSR mode. DIET makes temporary files
  398.     very frequently in TSR mode, consequently, if DIET could use
  399.     High Speed Memory Devices, DIET runs smooth and easy.
  400.     In case of nonresident mode, DIET compresses and decompresses on
  401.     memory, in principle, so you need not use this option.
  402.     DIET -Z -TD:\temp\  , where d: is supposed to be a RAMDISK.
  403.     DO NOT FORGET THE LAST "\" in this option.
  404.                            ~~~
  405.    Ignore Warning Messages:DIET -I [file_names].
  406.     DIET ordinarily stops compression for the files with overlays
  407.     when the size of the file in EXEHDR information is not the
  408.     same, with the message 'may be overlay files'. Since DIET can
  409.     take care of overlay files in the TSR mode, DIET may ignore
  410.     warnings and continue compression with '-I' option.
  411.     Those who use DIET only in nonresident mode should refrain
  412.     from using this option. There are EXE files which are loaded
  413.     in high memory. DIET warns you with the same message as
  414.     overlays, but you can't expect to have a smooth action with
  415.     such executables.
  416.  
  417.    Overlay mode option -V.
  418.     DIET compress executables as self-extracting compressed file
  419.     in general, but with this option on, DIET uses overly type
  420.     compressions. A self-extracting file can be executed by itself
  421.     if and only if the entire file is expanded in the memory. Files
  422.     compressed in Overlay Mode is executed only when the resident part
  423.     of DIET is active. However, Files compressed in overlay mode
  424.     are expanded as temporary overlay modules loadable as requested.
  425.     
  426.     You can compress large files which can not be fit in the memory
  427.     in overlay modules. In general files compressed in overlay mode
  428.     need no self-extractig header, consequently they are smaller than
  429.     the files in self-extracting mode.
  430.  
  431.   Auto recompress DIET -p [options] [file_names]
  432.     This switch is a toggle. You need resident part of DIET to
  433.     be active with this option. Auto recompress is disabled in
  434.     DIET defaults, so you must always enable this switch.
  435.     DIET -p will disable the switch.
  436.  
  437.   Japanese Messages Outputs: DIET -J [options] [file_names].
  438.    I am sorry that some witty succinct Japanese messages are
  439.    not imbedded in English messages. However, if you have
  440.    JDOS4.0 from IBM Japan, you may listen to the advice of
  441.    DR.Matsumoto on the present shape of your disk health status.
  442.  
  443.   No message:DIET -M [options] [file_names].
  444.    If your screen is mixed up with the messages from
  445.    DIET activated as a child process from your editor etc.,
  446.    use this switch to make DIET silent.
  447.  
  448.   Read Only Attribute: DIET -A [options] [file_names].
  449.    This is only for the sake of safety. This will make all
  450.    the data files to have attribute read-only. If you are using
  451.    DIET in resident mode, your editors invoke diet to decompress
  452.    a compressed file, if not your data files are not compressed.
  453.    In case your editor opened a compressed file, when you don't
  454.    have DIET resident, your editor may not be able to quit from
  455.    editing compressed binary file. A rare possibility, it might be.
  456.    This switch makes all the compressed file to be read-only.
  457.    You can not edit a file without changing its attribute.
  458.    Please note, if you copy a file from the original position,
  459.    then its file size will normally be restored to its original
  460.    size.
  461.  
  462.  4. Environmental Variables.
  463.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464.   DIET from version 1.02x refers to the following environmental strings.
  465.   DIETOFF  File_names for which DIET is disabled to act in resident mode.
  466.   DIETSIZE File_names which returns the real size of compressed
  467.            files when referenced.
  468.   DIETOPT  set options you use as your defalut. Valid only for the options
  469.            -b -v -j -i -a .
  470.   ** NOTE reference to environmental string is possible only in MS-DOS
  471.          ver3.xx or after.
  472.  
  473.   [ DIETOFF ] DIET in its resident mode has a powerful control over
  474.    files. In return, we have to be careful for its subsidiary actions.
  475.    For an example, when you copy compressed files:
  476.  
  477.         COPY diet102b.doc diet110a.doc
  478.  
  479.    you will know diet110a.doc has the original uncompressed file size.
  480.    Of course you can type:
  481.  
  482.           DIET -ZD
  483.           COPY DIET102b.DOC DIET110A.DOC
  484.  
  485.    to produce an exact copy of compressed size, yet it is better to
  486.  
  487.      SET DIETOFF=COMMAND.COM;FC.COM;XCOPY.EXE
  488.  
  489.    to the effect typing, dumping and copying without reproducing
  490.    files to original sizes.
  491.  
  492.    Register names of program to DIETOFF to disable reproduction
  493.    of the uncompressed files. You don't have to specify full path
  494.    names. DIET just ignores them and is concerned with program
  495.    names only.
  496.  
  497.   [ DIETSIZE ] There are programs which read in data files only to the
  498.    size obtained by the Function Call AH=4Eh/4F/h. In earlier versions
  499.    of DIET, it fails to read the data properly for such programs.
  500.    This string refers to such programs.
  501.  
  502.      SET DIETSIZE=**.COM;***.EXE
  503.  
  504.    will enable **.COM and ***.EXE to read compressed MSG or HLP
  505.    files, and will disable them to return "Wrong file" messages.
  506.    Unfortunately, there are many files including SK.COM, which
  507.    checks data files with other methods for different versions.
  508.  
  509.   [ DIETOPT ] You can set options you use as default:
  510.    <Example.>  set DIETOP=-b -v.
  511.  
  512.   5. Other Comments.
  513.   ~~~~~~~~~~~~~~~~~
  514.   File Open Error message.
  515.    When DIET is in its resident mode, you may see a message
  516.    "Can't find abc.exe" even if the file exists. DIET usually
  517.    decompresses files on the directory specified by -T option,
  518.    and if it fails to find enough room to decompress, DIET
  519.    says that it could not open the file. However, there are
  520.    programs which say "cannot find ...." when it fails to open
  521.    a file.
  522.  Temporary File Names.
  523.    Using DIET in resident mode, you will often see files with
  524.    names such as __DIET__.*. You will get these files when you
  525.    reset system or stop execution by Ctrl-Break. These are the
  526.    temporary files generated by DIET. You may or may not erase
  527.    those files, since they are under constant transactions.
  528.  
  529.   Warning !
  530.   ~~~~~~~~
  531.    The version has been well tested by many 'brave' people
  532.    who were not afraid of uncountable backups, collisions with other
  533.    TSR's or RESETings. However, we are not sure, yet, of unexpected
  534.    bad timings with other resident programs or devices. Please be
  535.    warned against the use of this software with other resident programs
  536.    especially in its resident mode. The author can not be liable for
  537.    the damages caused by the use of this program. Backup your files
  538.    before testing every time you use with a new program.
  539.   Our Distribution Policy.
  540.   ~~~~~~~~~~~~~~~~~~~~~~~~~
  541.   The program together with the other packaged documents is
  542.   copyrighted by Teddy Matsumoto.
  543.   You may copy, distribute and use this program free of charge
  544.   under the conditions:
  545.    you may not charge for copying or distributions,
  546.    you use this for your personal purposes,
  547.    you are to follow up versions if you port, and
  548.    you must copy or distribute the entire package.
  549.  
  550.   Acknowledgements
  551.   ~~~~~~~~~~~~~~~~
  552.   To Haruyasu Yoshizaki who found the vital bug which I could not find
  553.   up to the last moment,
  554.   to K.Okubo who introduced this software outside of Japan,
  555.   and to my friends in Fgal/Flabo forums on Nifty Serve who
  556.   dared to hang on the earlier versions in spite of the hang overs
  557.   from so many Hang Up's.
  558.  
  559.   How to contact the Author.
  560.   ~~~~~~~~~~~~~~~~~~~~~~~~~~
  561.   Email to Teddy Matsumoto at GBG00230 on Nifty Serve.
  562.  
  563.   Users not resident in Japan may contact K.Okubo at
  564.   74100,2565  Compuserve , K.Okubo Genie, or c00236@sinet.ad.jp
  565.  
  566.   Revision History.
  567.    version 1.00x            Beta test versions.
  568.    version 1.01a (2/01/91)  First TSR version.
  569.    version 1.01b (2/16/91)  To detect EMS, routine checked the
  570.                             possible opening of files name "EMMXXXX0"
  571.                             in some cases incomplete.
  572.                             Some routines failed to act normally for
  573.                             DISK I/O by INT21h.
  574.    version 1.02a (2/24/91)  Changed method to detect charater devices.
  575.                             Use EMS to reduce the resident part of
  576.                             DIET.
  577.                             New environmental variable DIETOFF by which
  578.                             programs disabled in TSR mode.
  579.                             Returns decompressed file size when a program
  580.                             in DIETSIZE acknowledge interrupt AH=4Eh/4Fh.
  581.    version 1.02b (3/04/91)  If COMMAND.COM is set to DIETOFF,COMSPEC need
  582.                             not be present at the top of enviroment area.
  583.                             Bug for the -T option, temporary file not
  584.                             always generated on TMP directory, fixed.
  585.    version 1.10a (4/01/91)  Automated recompression supported -p option. 
  586.                             From -z toggle to new -zr option.
  587.                             Byte count option -b added.
  588.                             TSR part now refers TMP and DIETOPT.
  589.                             DIET beeps when it fails decompression.
  590.                             Overlay mode and -v option newly designed.
  591.                             Support function call AH=4B03.
  592.                             Safely compress large files of approximately
  593.                             up to 1MB.
  594.                             A bug fixed with -o option where DIET failed
  595.                             to compress EXE files.
  596.   ==================End of Diet110a.doc=============================
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.