home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / dsize10.zip / DIRSIZE.TXT < prev   
Text File  |  1993-02-23  |  5KB  |  131 lines

  1. DirSize v1.0 - Directory Size Scanner for OS/2 v2.0
  2. ===================================================
  3. (c) Paul Gallagher 1993
  4. This REXX script is copywrite, but freely distributable.
  5.  
  6. Contents of this file:
  7.   * Version History
  8.   * Contacting the author
  9.   * System Requirements
  10.   * About DirSize
  11.   * Using DirSize
  12.  
  13. Version History
  14. ===============
  15. DirSize is currently in "beta" release (which basically means I haven't had
  16. a lot of time to test it). Please do your best to report all problems so that
  17. I can generate the appropriate fixes. Suggestions for improvements are most
  18. welcome, as are criticisms of my REXX code! 
  19.  
  20. 93.02.22 : v1.0
  21.   Pros:
  22.     * optional sort by size
  23.     * optional mask by size used
  24.   Cons:
  25.  
  26. Contacting the Author
  27. =====================
  28. I (that is: me, i.e. Paul Gallagher) welcome comments, discussion, criticism
  29. even ;-) about DirSize.
  30.  
  31. Contact me by mail at <paulg@a1.resmel.bhp.com.au>, snail mail at:
  32. PO Box 731 Mt Waverley 3149 Australia, or tel: +61-3-560-7066 (BH),
  33. +61-3-803-9543 (AH)
  34.  
  35. System Requirements
  36. ===================
  37. DirSize requires REXX to be properly installed on your system. It also
  38. requires RXQUEUE.EXE which should be found in C:\OS2. It has been developed
  39. under IBM OS/2 v2.0 - I'm not sure how it will go under previous versions.
  40.  
  41. About DirSize
  42. =============
  43. DirSize started off as a simple utility to find out who the hell was using
  44. up the space on our file server. It still is a simple utility!
  45. All it does is list directories/sub-directories and tell you how much space each
  46. consumes. It is possible to get the list sorted by size, and also to prevent
  47. the reporting of directories that do not meet a "minimum size" for reporting.
  48.  
  49. Note that the DIR command can give you all the size details that DirSize reports.
  50. DirSize simply reports the info better.
  51.  
  52. Using DirSize
  53. =============
  54. Getting help:     DIRSIZE /?
  55.  
  56. Usage:
  57.        DIRSIZE [filespec] [dir options] [/D] [/Mxxx]
  58.  
  59. Output is generally a list with each line having the form:
  60. <full directory path><tab><size used><space>"bytes"
  61.  
  62. Where:
  63.   [filespec] and [dir options]
  64.   ----------------------------
  65.   Use the standard options you would use with the DIR command to tell DIRSIZE
  66.   where and what to scan. For example, to scan all of C:\OS2PROJ\REXX use
  67.  
  68.   Command:
  69.      DIRSIZE C:\os2proj\rexx
  70.      ** Output **
  71.        DirSize v1.0 (c) Paul Gallagher 1993 {paulg@a1.resmel.bhp.com.au}
  72.  
  73.        C:\os2proj\rexx 45815 bytes
  74.        C:\os2proj\rexx\chat    15518 bytes
  75.        C:\os2proj\rexx\db2inf  10721 bytes
  76.        C:\os2proj\rexx\db2inf\test     193466 bytes
  77.        C:\os2proj\rexx\rps     235995 bytes
  78.        C:\os2proj\rexx\VArc    37497 bytes
  79.  
  80.        Size of directory tree: 539012 bytes
  81.      ** Output ends **
  82.  
  83.   Note that DirSize *always* scans and reports on subdirectories under the directory
  84.   specified. If you just want to know how much space the directory c:\os2 uses, then
  85.   shit, use DIR!
  86.   Although you can use all of the parameters permitted by DIR, many don't make sense
  87.   when using DirSize (such as /O, /L or /S).
  88.  
  89.   /D
  90.   ---
  91.   The /D parameter requests DirSize to order the directories in order of space used.
  92.   By default, most hungry dirs are shown first!
  93.  
  94.   Command:
  95.      DIRSIZE C:\os2proj\rexx /D
  96.      ** Output **
  97.        DirSize v1.0 (c) Paul Gallagher 1993 {paulg@a1.resmel.bhp.com.au}
  98.  
  99.        C:\os2proj\rexx\rps     235995 bytes
  100.        C:\os2proj\rexx\db2inf\test     193466 bytes
  101.        C:\os2proj\rexx 45815 bytes
  102.        C:\os2proj\rexx\VArc    37497 bytes
  103.        C:\os2proj\rexx\chat    15518 bytes
  104.        C:\os2proj\rexx\db2inf  10721 bytes
  105.  
  106.        Size of directory tree: 539012 bytes
  107.      ** Output ends **
  108.  
  109.   /Mxxx
  110.   ------
  111.   The /M parameter is used to mask the output listing based upon space used. For
  112.   a parameter /Mxxx, only directories using more than 'xxx' bytes are displayed.
  113.   However, all directories regardless of size are still scanned - only the report is
  114.   affected.
  115.   The /M paramter must appear last on the command line.
  116.   The /M can appear with or without the /D parameter.
  117.  
  118.   Command:
  119.      DIRSIZE C:\os2proj\rexx /D /M40000
  120.      ** Output **
  121.        DirSize v1.0 (c) Paul Gallagher 1993 {paulg@a1.resmel.bhp.com.au}
  122.  
  123.        C:\os2proj\rexx\rps     235995 bytes
  124.        C:\os2proj\rexx\db2inf\test     193466 bytes
  125.        C:\os2proj\rexx 45815 bytes
  126.  
  127.        Size of listed directories: 475276 bytes
  128.        Size of directory tree: 539012 bytes
  129.      ** Output ends **
  130.  
  131.