home *** CD-ROM | disk | FTP | other *** search
/ PC Shareware 1998 March / PCShareware-3-98.iso / programy / dirsiz / _SETUP.1 / dirsize.txt < prev    next >
Text File  |  1998-01-12  |  23KB  |  551 lines

  1. DIRSIZE v3.0 - Disk usage and wastage in a directory tree
  2. =========================================================
  3.  
  4. Copyright (c) 1993-8 Simon A Carter for Crystal Software
  5.  
  6. DirSize is SHAREWARE, and may be trialed for 30 days. If you find DirSize
  7. useful and plan to continue using it, you must pay for it. See the end of
  8. the file for more details. Please register on the DirSize mailing list by
  9. sending email to Simon Carter at launch@ozemail.com.au, with your name and
  10. any comments.
  11.  
  12.  
  13. What's New - 12-Jan-1998
  14. ========================
  15.  
  16.     *   32 bit Windows 95/NT version available in addition to 16 bit
  17.         DOS/Windows 95 version.
  18.     *   New and improved sorting options û total, local, waste, files
  19.     *   Full scrolling support in either direction.
  20.     *   The date and time is added when DirSize's output is redirected.
  21.         A form feed is also added to eject the page when redirecting to
  22.         a print.
  23.     *   Now uses InstallShield for simple install/uninstall.
  24.     *   Now includes file count display column (can be toggled on and
  25.         off).
  26.     *   If a directory is excluded from display because it is deeper or
  27.         smaller than specified by the user, the parent directory name
  28.         has '...' added to it and the wastage and file count of the
  29.         excluded directory are added to the parent's.
  30.     *   New GUI configuration utility for setting default parameters for
  31.         the Windows 95/NT version.
  32.     *   Now only one directory can be specified on the command line û
  33.         but this makes it easier to change one option and re-run
  34.         DirSize.
  35.     *   Default for wastage display now back to a % display.
  36.     *   Fixed bug that prevented directories starting with '.' being
  37.         processed.
  38.     *   Fixed math overflow when G specifier used eg ûsize=2G.
  39.     *   Fixed bug with redirection of prompt/progress indicator.
  40.  
  41.  
  42. Benefits
  43. ========
  44.  
  45. DirSize shows you how much disk space is used and wasted in each
  46. directory.
  47.  
  48. Its uses include:
  49.  
  50.     *   Finding space hogs on a network
  51.     *   Finding multiple copies of a single application on a server
  52.     *   Finding which directories could be archived to save space
  53.         (typically those that contain lots of small files)
  54.     *   Finding where most of the disk space is used
  55.     *   Finding applications to remove before installing a new one
  56.     *   Previewing the benefits of a smaller cluster size
  57.     *   Generating daily, weekly or monthly reports showing how the disk
  58.         space distribution has changed. You can easily generate tab- or
  59.         comma-delimited output to feed directly into your favourite
  60.         spreadsheet for further analysis
  61.     *   Showing you the complete directory tree
  62.  
  63. On large hard disks up to 1/4 of the total drive space is wasted! DirSize
  64. will show you where.
  65.  
  66. It runs under DOS, Windows 3.x, 95 and NT, and supports long filenames
  67. under Windows 95 and NT.
  68.  
  69.  
  70. Features
  71. ========
  72.  
  73.     *   Summary statistics for multi-level directories. This is very
  74.         useful for finding the complete size of applications before
  75.         deletion or backup.
  76.     *   Displays Windows 95/NT long filenames.
  77.     *   Supports international thousands separators.
  78.     *   The directories to be displayed can be limited by their size or
  79.         depth; very useful for eliminating unnecessary detail.
  80.     *   For the selected drive, displays actual cluster size, free
  81.         space, used space and capacity.
  82.     *   For each directory tree specified, displays cluster size (user-
  83.         selectable), total space used and wastage (as a percentage or as
  84.         a total).
  85.     *   For each directory displayed, shows total space, wasted space
  86.         (as a percentage or as a total), and if it has subdirectories,
  87.         the total space used by the directory and all of its
  88.         subdirectories.
  89.     *   Shows wasted space for a given cluster size - optimise your
  90.         cluster size before repartitioning your hard disk.
  91.     *   Rounds up file sizes to the cluster size for the most accurate
  92.         size information.
  93.     *   Size/wastage information includes the size of directories
  94.         themselves.
  95.     *   Full scrolling support in either direction. Disabled
  96.         automatically if output is redirected.
  97.     *   Output can be redirected to a file or to the printer or into
  98.         another program.
  99.     *   The characters used to draw the directory tree can be changed
  100.         from DOS extended ASCII characters to standard ASCII characters
  101.         for other operating systems.
  102.     *   Comma-delimited and tab-delimited output formats for easy
  103.         importing into databases, spreadsheets or word processors for
  104.         further analysis or specialised printing.
  105.     *   Directory sorting by name, total or local size, wastage or file
  106.         count.
  107.     *   Future proof - directory sizes up to 99 GB are catered for.
  108.     *   Progress indicator as it accumulates file information.
  109.  
  110.  
  111. Installation
  112. ============
  113.  
  114. Just copy DIRSIZE.EXE to a directory in your path, for example, to C:\DOS.
  115. To find out the directories in your path, type
  116.  
  117.    c:\> path    [Enter]
  118.  
  119.  
  120. How to use DirSize
  121. ==================
  122.  
  123. Typing
  124.  
  125.    dirsize -?   [Enter]
  126.  
  127. on its own will display usage information.
  128.  
  129. Usage:
  130.    dirsize [options] [directory] [options]
  131.  
  132. Where [options] is zero or more of:
  133. [directory]   Default: Current path
  134.               
  135.               The directory to process. This may be a UNC path
  136.               (\\computer_name\share_name\path). Directory names with
  137.               special characters such as spaces must be entered with
  138.               double quotes e.g.
  139.               
  140.               c:\> dirsize "Program Files"   [Enter]
  141.               
  142. -sort=        Default: name
  143.  [name  |     
  144.   local |     Specifies the sort order:
  145.   total |     
  146.   waste |       Name - sort by directory name in alphabetical order.
  147.   files |       
  148.   none          Local - sort by local size, largest first.
  149.  ]              
  150.                 Total - sort by total size, largest first.
  151.                 
  152.                 Waste - sort by wasted space, largest first (not as
  153.                 percentage of overall space).
  154.                 
  155.                 Files - sort by number of files, largest first.
  156.                 
  157.                 None - do not sort. This may be useful if you are
  158.                 comparing DirSize's output to an unsorted listing from
  159.                 the DOS DIR command - each directory is displayed in the
  160.                 same order it was retrieved from disk.
  161.               
  162. -p            Do not paginate the output. Pagination pauses after each
  163.               screenful of output. [Enter] shows the next line, [Esc]
  164.               exits, [End] scrolls continuously to the end of the output,
  165.               and any other key shows the next screen full of output.
  166.               Pagination is automatically disabled when the output is
  167.               redirected.
  168.               
  169. -size=#       Only show directories that use # space or larger. A K, M or
  170.               G suffix can be used to express the value in KBytes (1024
  171.               bytes), MBytes (1024 KBytes) or GBytes (1024 Mbytes). This
  172.               is very useful for finding network space hogs, or for
  173.               eliminating small directories that are of no consequence
  174.               from the display.
  175.               
  176. -cl=#         Show how much disk space would be wasted if the cluster size
  177.               was set to # bytes per cluster. # is restricted by DOS to
  178.               powers of two, but for convenience DirSize allows it to be
  179.               set to any value. This is useful for previewing the result
  180.               of a change in cluster size on a set of files. In general,
  181.               the smaller the cluster size, the smaller the wasted space.
  182.               As for -size=# above, a K, M or G suffix can be used.
  183.               
  184. -dir          In this mode, DirSize does not round up the space used by
  185.               each directory (the local size, not including any
  186.               subdirectories). DirSize also ignores the space used in each
  187.               directory by DOS for housekeeping.
  188.               
  189. -#            Default: All levels (255)
  190.               
  191.               Limits the number of levels of directories displayed to the
  192.               given value. Eg -1 will only show the first directory level.
  193.               The statistics will include all levels, but they will not be
  194.               displayed. This is very useful if you just need to find out
  195.               how much total space is in use by an application without
  196.               caring how it is divided into sub-directories. A value of 0
  197.               is equivalent to a value of 255 (i.e. all levels).
  198.               
  199. -comma        Print the result in a comma-delimited output format suitable
  200.               for importing into a spreadsheet, database or word
  201.               processor.
  202.               
  203. -tab          Same as -comma above but outputs in tab-delimited format.
  204.               
  205. -nowaste      Do not show wasted space for each directory. The wasted
  206.               space is still included in the totals - it is just not shown
  207.               as a display column.
  208.               
  209. -asval        Show the actual wasted space per directory rather than as a
  210.               percentage of the directory's used space.
  211.               
  212. -c<+|->       Control which characters to use for drawing lines.
  213.               
  214.               + Uses DOS's graphical line drawing characters even if it
  215.               detects that its output is being redirected.
  216.               - Uses portable text line drawing characters even if it
  217.               detects that its output is not being redirected. This is
  218.               useful if the result is going to be used on another
  219.               computer, for example, on a Unix machine or a Macintosh.
  220.               
  221.               Note: When DirSize detects that its output is being
  222.               redirected, it automatically turns off pagination, and
  223.               selects portable characters to draw lines, such as +, - and
  224.               |. It does this because the output may be sent to a device
  225.               or another computer that does not understand DOS's line
  226.               drawing characters (which are non-portable). When DirSize's
  227.               output goes to the screen, it uses the DOS line drawing
  228.               characters. You can override the default behaviour in either
  229.               case using the -c option
  230.  
  231.  
  232. DirSize Environment Variable
  233. ============================
  234.  
  235. If you regularly use the same settings for DirSize, you can set them in
  236. the environment variable DirSize. This variable is processed before
  237. command line options, so anything specified on the command line will
  238. override it.
  239.  
  240. e.g.
  241.  
  242.    SET DIRSIZE=-nowaste -c- -nosort
  243.  
  244. Some of DirSize's command line options require an equals sign. In order to
  245. use these in an environment variable, change the equal sign (=) to a colon
  246. (:) eg -cl=# becomes -cl:#.
  247.  
  248.  
  249. Redirecting Output
  250. ==================
  251.  
  252. DirSize's output can be redirected to any device. For example, to save
  253. DirSize's output to the file output.txt, you can type:
  254.  
  255.    dirsize > output.txt    [Enter]
  256.  
  257. To add DirSize output to an existing file exists.txt, type
  258.  
  259.    dirsize >> exists.txt    [Enter]
  260.  
  261. To send DirSize's output to the printer, type
  262.  
  263.    dirsize > prn    [Enter]
  264.  
  265.  
  266. DirSize Example
  267. ===============
  268.  
  269. The output below was generated from running DirSize in the Program Files
  270. directory (in a DOS shell under Windows 95). All directories smaller than
  271. 2 MB have been removed from display:
  272.  
  273.    c:\> dirsize d:\ -2    [Enter]
  274.    DirSize v3.0  Copyright (c) 1993-8 Simon Carter for Crystal Software
  275.    
  276.     Total-no subs  Wstd  Files  Directory name   [dir + subdirs total]
  277.    --------------  ----  -----  -----------------------------------------
  278.                 0    0%      0  D:\   [239,828,992]
  279.             4,096   92%      0  |--Games   [157,437,952]
  280.           593,920   13%     19  |  |--Larry1
  281.           946,176    4%     11  |  |--Larry2
  282.           913,408   24%     52  |  |--Lemmings
  283.        28,327,936    5%    362  |  |--Mech2 ...   [63,311,872]
  284.         1,024,000    7%     17  |  |--Quake ...   [19,726,336]
  285.         9,408,512    3%     67  |  |--Starcon2
  286.        61,587,456    1%    226  |  |--Starcon3
  287.           946,176    5%     10  |  +--Zork
  288.             4,096   95%      0  |--Installation Zips   [69,320,704]
  289.         5,595,136    0%      1  |  |--cardshop
  290.         6,418,432    0%      5  |  |--Driver disks for '95
  291.        56,303,616    0%     56  |  |--Osr2
  292.           999,424   12%     33  |  +--Powerup
  293.         2,920,448    1%      4  |--Recycled
  294.         6,676,480    2%     38  +--zips   [10,149,888]
  295.         3,260,416    3%     20     +--New stuff ...   [3,473,408]
  296.    --------------  ----  -----  -----------------------------------------
  297.       239,828,992    2%    921  Cluster size: 4,096  Wastage: 3,696,755
  298.    --------------  ----  -----  -----------------------------------------
  299.    
  300.    Drive D: statistics:
  301.       Cluster size:          4,096 bytes
  302.         Free space:      6,615,040 bytes (  3% of capacity is free)
  303.         Used space:    238,186,496 bytes
  304.           Capacity:    244,801,536 bytes
  305.  
  306.  
  307. Note how all sizes shown (except the wasted space) are integral (whole)
  308. multiples of the drive's cluster size.
  309.  
  310. When DirSize has produced a display, you can press:
  311.      [W]   To toggle the wastage display on and off
  312.      [D]   To alternate the wastage display format between a percentage of
  313.            the total space used or as an actual value
  314.      [F]   To toggle the file count display on and off
  315.      [A]   Alternates the display of tree characters betweeen standard
  316.            ASCII and graphic line-drawing characters.
  317.  
  318.  
  319.  
  320. What is the "Cluster Size" ?
  321. ============================
  322.  
  323. When your computer places files on a disk (both hard disks and floppy
  324. disks), it must use an integral number of allocation units. The size of
  325. the allocation units varies depending on the total capacity of the disk.
  326. This means that if a file is smaller than one complete allocation unit, it
  327. does not fill the entire allocation unit. For example, lets say we have a
  328. file that is 300 bytes long. On a floppy disk with an allocation unit of
  329. 512 bytes, the file will only occupy the first 300 bytes, but since one
  330. entire allocation unit must be used, the remaining 212 bytes are wasted. A
  331. file 513 bytes long will occupy 2 allocation units, with 511 bytes wasted.
  332. An allocation unit is called a CLUSTER. Floppy drives typically use a
  333. cluster size of 512 bytes or 1,024 bytes, so not much space is wasted.
  334. Hard disks range from 2,048 bytes (for a 106 MB drive) to 32,768 bytes
  335. (for a 1.04 GB drive) and even 65,535 bytes, which means that a great deal
  336. of space is wasted. The cluster size gets bigger with bigger disks for two
  337. reasons:
  338.  
  339.    1)    A DOS limitation that sets an absolute upper maximum on the total
  340.          number of clusters on a drive (65535).
  341.    2)    The overhead of managing a large number of clusters consumes a
  342.          lot of disk space that cannot be used for anything else.
  343.  
  344. The DOS DIR command always shows you the size actually in use by the file
  345. - it does not include the extra 'wasted' space at the end of the cluster.
  346. This wasted space is sometimes referred to as 'slack' space.
  347.  
  348.  
  349. Directories use up clusters too
  350. ===============================
  351.  
  352. DirSize takes into account the amount of disk space used to store the
  353. entries within each directory. Normal file, directory and volume label
  354. entries take up 32 bytes each. Long filename entries can consume between 1
  355. and 32 additional directory entries (each of 32 bytes).
  356.  
  357. Even empty directories use a minimum of one cluster - for the current
  358. directory "." and the parent directory ".." entries. The root directory
  359. always consumes a fixed and pre-determined amount of disk space which
  360. cannot be reclaimed, and DirSize excludes the number of entries in the
  361. root directory from its calculations.
  362.  
  363. DirSize does not take into account the size of entries that are no longer
  364. being used. This means that a directory that has had many files deleted
  365. may display a size lower than that actually in use. DOS never reclaims
  366. this extra space unless you delete the directory.
  367.  
  368. To reduce the amount of disk space used by directories, remove directories
  369. that do not contain any files. Also, if you delete a large number of files
  370. from one directory (particularly directories containing long filenames),
  371. move the files to a new directory, remove the old one and then rename the
  372. new directory to the original name.
  373.  
  374.  
  375. Lost clusters
  376. =============
  377.  
  378. Clusters can become orphaned when DOS is unable to complete changes to the
  379. disk, for example, when you are forced to reboot your machine or when the
  380. power is turned off accidentally. These clusters cannot be used until they
  381. are identified and reclaimed. Use the DOS CHKDSK or SCANDISK command to
  382. reclaim lost clusters. Lost clusters are considered to be used.
  383.  
  384.  
  385. Reducing wasted space
  386. =====================
  387.  
  388.  
  389. What about Disk Compression ?
  390. =============================
  391.  
  392. Disk compression programs like Stacker and DoubleSpace are able to make
  393. use of the wasted space because they take on the responsibility of storing
  394. the files themselves. By doing so, they overcome DOS's integral cluster
  395. size limitation. DirSize's space wasted information may be invalid on
  396. volumes controlled by these programs, and on some later versions of file
  397. servers.
  398.  
  399.  
  400. What about archives ?
  401. =====================
  402.  
  403. Storing collections of files in a compressed or uncompressed archive saves
  404. space, because by grouping all of the files into one large file, only a
  405. small amount of space is wasted. The archive program uses its own format
  406. to store the files without wasting space.
  407.  
  408.  
  409. Partitions - decreasing the cluster size
  410. ========================================
  411.  
  412. Partitions subdivide a physical disk drive into a number of logical
  413. drives. For example, a 500 MB hard disk could be partitioned into two
  414. 250MB partitions, C: and D:. The advantage of doing this is that the
  415. cluster size can be smaller, and in general, the amount of wasted space
  416. will be smaller. The disadvantage is that it takes time to set up (since
  417. you have to move ALL of your data off the hard disk in order to partition
  418. it, unless you have a program that can re-partition on the fly), and you
  419. have to remember which drive your programs are on, and manage space across
  420. two drives instead of one. For more information on partitions, see the DOS
  421. FDISK command.
  422.  
  423.  
  424. Registration
  425. ============
  426.  
  427. DirSize is SHAREWARE and may be trialed for a period of 30 days. After
  428. this time you must either purchase the registered version (for $15) or
  429. cease using the shareware version.
  430.  
  431. Please register your USAGE of DirSize by sending email to
  432. launch@ozemail.com.au, with your name and address, version of DirSize and
  433. any relevant comments or suggestions. By registering DirSize I can inform
  434. you of updates or improvements and let you know when the next version is
  435. released.
  436.  
  437. If you like and use DirSize, how about linking to my Web site (see below)?
  438.  
  439.  
  440. Online Web Registration
  441. =======================
  442.  
  443. The registered version of DirSize can be purchased and received
  444. immediately on the Internet, eliminating shipping and handling costs.
  445.  
  446.  
  447. Albert's Ambry
  448. --------------
  449.  
  450. Direct URL:
  451. http://www.alberts.com/Ambry/Register?File_Name=dirsize.zip&OS=DOS&Source=
  452. AuthWWW
  453.  
  454. OR go to
  455.  
  456.   http://www.alberts.com
  457.  
  458. and search for: DirSize
  459.  
  460. Click on the "Buy it" hotlink to register DirSize.
  461.  
  462.  
  463. Crystal Software Order Form
  464. ===========================
  465.  
  466. Use this form for orders sent directly to Crystal Software in Australia.
  467.     
  468.     ____ x Single user licence(s) at  $15 each: $______
  469.     ____ x Server licence(s)      at $150 each: $______
  470.     ____ x Site licence(s)        at $300 each: $______
  471.     ____ x Company licence(s)     at $500 each: $______
  472.     
  473.     Postage and 3.5" diskette          (  )         $10
  474.       OR                                OR        OR
  475.     Deliver to your email address      (  )    * free *
  476.     
  477.                                         Total: $_______
  478.     
  479.     
  480.     Personal details
  481.     ----------------
  482.     
  483.            Name: ____________________________________________
  484.           Email: ____________________________________________
  485.         Company: ____________________________________________
  486.         Address: ____________________________________________
  487.                  ____________________________________________
  488.                  ____________________________________________
  489.                  ____________________________________________
  490.           Phone: ____________________________________________
  491.             Fax: ____________________________________________
  492.  
  493.  
  494.     Visa or MasterCard (*)
  495.     ----------------------
  496.     
  497.     Please tick: ( ) Visa     ( ) MasterCard
  498.     Card Number: ____ ____ ____ ____
  499.     Expiry Date: ____/______
  500.     
  501.     Card holder name: ________________________________
  502.     
  503.       Signature: ________________________________
  504.     
  505.            Date: ____________
  506.     
  507.     (*) Please note that these orders are processed by Omnivision
  508.     Technologies, a licensed distributor.
  509.     
  510.     
  511.     Cheques
  512.     -------
  513.     I accept bank cheques and personal cheques drawn on Australian banks.
  514.     For foreign cheques, please include an additional $US 5 to cover my
  515.     bank's foreign cheque charge. Please make cheques payable to Simon
  516.     Carter.
  517.     
  518.     
  519.     Postal money orders
  520.     -------------------
  521.     I accept prepaid postal money orders in Australian dollars.
  522.     
  523.     
  524.     Other Payment Methods
  525.     ---------------------
  526.     I also accept foreign currencies (suitably disguised within an
  527.     envelope) provided they allow an extra $5 for currency conversion.
  528.  
  529.  
  530. Contact Information
  531. ===================
  532.  
  533. I am always happy to hear your comments! If you use and like DirSize, or
  534. have any suggestions for improvements, please drop me a line! Other user's
  535. suggestions have made it what it is today.
  536.  
  537.  Email:     launch@ozemail.com.au
  538.    WWW:     http://www.ozemail.com.au/~launch
  539.    Fax:     +61 (3) 9800-3078
  540.  Voice:     +61 (3) 9888-3104. After hours number. Please leave a
  541.             contact name, number and time, and I will try to get back
  542.             to you within 24 hours.
  543.   Mail:     Simon Carter
  544.             Crystal Software
  545.             2 / 9 Woodbine Court
  546.             Wantirna
  547.             Victoria 3152
  548.             AUSTRALIA.
  549.     
  550.  
  551.