home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / COMPRESS.ZIP / compress.doc next >
Text File  |  1991-02-18  |  2KB  |  56 lines

  1. COMPRESS
  2. ========
  3.  
  4. This program defragment files on a HPFS partition using OS/2.  It is
  5. tested with OS/2 1.3, but should work OK with OS/2 1.2 too.  How the
  6. algorithm works, is easy to see in the included source.  I think this
  7. approach will work, but as I don't have any specific information on
  8. the DosCopy API, and if this API sets the pre-allocation file size
  9. according to the file allocation information.
  10.  
  11. My personal opinion is that it is somewhat unnecessary to defragment
  12. a HPFS partition, but I have seen users requesting this kind of program.
  13.  
  14. The program is started with the following syntax:
  15.  
  16. Compress <path> [/S]
  17.  
  18. <path>   File path of files to be compressed.  The parameter should be
  19.          entered like "\" or "C:\DEMO\".
  20.  
  21. /S       Optional.  Specifies that subdirectories should be compressed
  22.          too.
  23.  
  24. You should NOT stop the program with Ctrl-Break, or similar.  If you
  25. want to terminate, you should press <Esc>.  IF you press Ctrl-Break,
  26. you MAY "almost" lose ONE file.  If you press Ctrl-Break, you should
  27. look for a file called "Mikaels.$$$", in the last compressed directory.
  28. If this file exists, you should rename it back to the last file name
  29. written on the screen.  This happens only if you was unlucky enough to
  30. press Ctrl-Break exactly between the DosDelete and DosMove API calls,
  31. but we all know Murphys law.
  32.  
  33. As I don't have noticed any speed improvements myself, using this
  34. program (my drive is in good order already), I would be happy if
  35. you would like to post me your experiences.  If you have any questions
  36. or suggestions, please mail me.
  37.  
  38. My address:
  39. Mikael Wahlgren
  40. Kransen 4E
  41. S-416 72  Gothenburg
  42. Sweden
  43.  
  44. Fidonet:  Mikael Wahlgren 2:203/302.5
  45. Internet: d9mikael@dtek.chalmers.se
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.