home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / UTILS / PRUNE21.ZIP / PRUNE.DOC next >
Text File  |  1990-09-17  |  3KB  |  75 lines

  1. Program Name:   PRUNE   (PRUNE.EXE)
  2.  
  3. Version:        2.1   September, 1990
  4.  
  5. Function:       Clear out unallocated bytes at the end of a file.
  6.  
  7. Requirements:   64K, DOS 2.0 or later.
  8.  
  9. Command Syntax: prune filespec...filespec
  10.                 prune /s filespec...
  11.                 prune /f "fill value" filespec...
  12.                 prune /u filespec...
  13.  
  14.                 "filespec" may contain drive and path specifiers, as well
  15.                 as wildcards (* and ?). If the "/s" option is given, all
  16.                 subdirectories will be searched for matching files.  The
  17.                 fill value is normally 1A hex, but can be set to anything
  18.                 by the "/f" option.  The "/u" option causes all unallocated
  19.                 file space to be filled in addition to the file ends.
  20.  
  21. Discussion:
  22.  
  23.     DOS allocates disk space in terms of fixed-length "chunks" called
  24.     clusters.  Few files are exactly a multiple of the cluster size in
  25.     length, so the unused bytes at the end of the last cluster may
  26.     contain sensitive information left in the memory of the system used
  27.     to generate or copy the files.  PRUNE over-writes the unused bytes
  28.     with the DOS end-of-file character, hex 1A, or whatever was specified
  29.     if the "/f" option was used.  The sizes of the files thus processed
  30.     are not affected by this operation.  File times and dates are preserved.
  31.  
  32.     If the "/u" option is specified, all unallocated storage is cleared to
  33.     heaxdecimal "F6".
  34.  
  35.     Standard DOS I/O is used, so PRUNE should work on any disk, including
  36.     RAMDisk.
  37.  
  38. Examples:
  39.  
  40.         PRUNE /F "EMPTY SPACE " /S C:\*.* D:\*.*
  41.  
  42.         All files on drives C: and D: are PRUNE-d, the fill pattern used is
  43.         "EMPTY SPACE ".
  44.  
  45.         PRUNE /S D:\DUMMY\*.EXE
  46.  
  47.         All .EXE files in the subdirectory "DUMMY" and any of its subdirec-
  48.         tories are pruned, using the value 1A hex.
  49.  
  50.  
  51.                       Copyright 1989, 1990 by
  52.  
  53.                                Sydex
  54.                            P.O. Box 5700
  55.                           Eugene, OR  97405
  56.                         (503) 683-6033 (voice)
  57.                         (503) 683-1622 (FAX)
  58.  
  59.                          All rights reserved.
  60.  
  61.     NOTICE: This product is supplied "as-is".  No warranties of any
  62.     kind are given by Sydex, nor will Sydex be held liable for any
  63.     damage, either accidental or intentional, resulting from the use
  64.     of this or any other program.
  65.  
  66.     Sydex hereby grants license to freely reproduce and redistribute this
  67.     program, provided that no fee is charged for the program.  A small fee,
  68.     not to exceed $10 may be charged to cover the costs of reproduction and
  69.     distribution of this program.  This program and its documentation may
  70.     not be altered or modified in any way.
  71.  
  72.     Any other use or application of PRUNE or its documentation constitutes
  73.     a violation of copyright and may be subject to criminal and/or civil
  74.     prosecution.
  75.