home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / d / deldir22.zip / DELDIR.TXT < prev    next >
Text File  |  1993-01-25  |  5KB  |  113 lines

  1. DELDIR v2.2 by Emmanuel Verbeeck.
  2.  
  3. Object:
  4.  
  5.    Removes several non-empty directories (and their subdirectories).
  6.    Can also remove at once several files/directories specifications
  7.    recursively, selectively, regardless of readonly/hidden/system
  8.    attributes, and wipe confidential data so that it is unrecoverable.
  9.    Operates in both interactive and batch modes, handling exclusion
  10.    masks, hardware faults, and break requests.
  11.  
  12. Syntax:
  13.  
  14.    DELDIR [wildcards...] [/options...]
  15.  
  16. Wildcards:
  17.  
  18.    [d:][\path]name[.ext]  = files/directories to delete
  19.    @[d:][\path]name[.ext] = file containing a list of files/dirs to delete
  20.    #name[.ext]            = files/directories to exclude
  21.  
  22. Options:
  23.  
  24.    /A = (files only) Ask for confirmation before each removal;
  25.    /B = (all)        Beep on errors;
  26.    /C = (dirs only)  Count files deleted in each directory;
  27.    /D = (all)        Disable CTRL-C and CTRL-BREAK during processing;
  28.    /E = (all)        bypass Environment variable DDOPT=... reading;
  29.    /F = (all)        display messages in French instead of English;
  30.    /H = (all)        display this Help page (use >PRN to print it);
  31.    /I = (all)        Ignore hardware errors (useful in batch files);
  32.    /K = (dirs only)  Keep directory structure, just remove contents;
  33.    /L = (lists only) listfile is deleted after being processed;
  34.    /M = (all)        be Mute, don't report anything even errors;
  35.    /N = (all)        save the current parameters by setting DDOPT;
  36.    /O = (all)        Only process files and ignore directories;
  37.    /P = (all)        Pause when the screen is full;
  38.    /Q = (all)        be Quiet, don't report items removed;
  39.    /R = (all)        only process diRectories and ignore files;
  40.    /S = (files only) also delete files in Subdirectories;
  41.    /V = (files only) Verify that files are correctly deleted/wiped;
  42.    /W = (files only) Wipe files instead of deleting them (very dangerous);
  43.    /X = (files only) eXclude files created or modified since last backup;
  44.    /Y = (all)        display short syntax summarY (use >PRN to print it);
  45.    /Z = (files only) exclude hidden and system files.
  46.  
  47. Notes:
  48.  
  49.    Wildcards are accepted (eg P* means all entries beginning with P);
  50.    Several directories can be specified (eg DELDIR \utils c:\games);
  51.    Filenames can also be specified (eg DELDIR c:\*.bak d:\testdir);
  52.    Specifying just a drive letter (eg A:) will delete the whole volume;
  53.    Several options can be combined (eg type /bcp instead of /b /c /p);
  54.    Options can be either upper- or lowercase (eg /c is equal to /C);
  55.    Options can start with '-' instead of '/' (eg -p is equal to /p);
  56.    Exclusions can be specified using #mask (eg #*.ok will skip .OK files);
  57.    Defaults can be set via the DOS variable DDOPT (eg SET DDOPT=af);
  58.  
  59. Warnings:
  60.  
  61.    Using DELDIR C:\*.* /DW would completely *wipe* your harddisk!
  62.    You should always combine /W (wipe) with /A (ask for confirmation).
  63.    Unless /Z, system, hidden and read-only files are not protected!
  64.    Drive and/or paths are not allowed in #exclusions.
  65.    The /N option is not 100% foolproof; for compatibility use SET DDOPT=...
  66.    This program does a self-test for infection/hacking at startup.
  67.  
  68. DELDIR returns an ERRORLEVEL value (0 through 255) composed as follows:
  69.  
  70.    no bit set  (  0) = process ran fine;
  71.  
  72.    1st bit set (  1) = file attributes could not be cleared;
  73.    2nd bit set (  2) = a wrong parameter had been specified;
  74.    3rd bit set (  4) = a directory or file does not exist;
  75.    4th bit set (  8) = access to a file had been denied;
  76.    5th bit set ( 16) = DELDIR.EXE has been modified or renamed;
  77.    6th bit set ( 32) = the current directory had been specified;
  78.    7th bit set ( 64) = a directory could not be removed (run CHKDSK);
  79.    8th bit set (128) = a file could not be deleted (run CHKDSK).
  80.  
  81. Examples:
  82.  
  83.    DELDIR \tmp \temp -r         : delete directories \TMP and \TEMP of the
  84.                                   current drive, ignoring files named
  85.                                   TMP. or TEMP. in the root.
  86.  
  87.    DELDIR \*.bak \*.old -s -af  : delete all .BAK and .OLD files
  88.                                   throughout the current drive,
  89.                                   requesting confirmation in french.
  90.  
  91.    DELDIR d:\docs\???.doc /WXSQ : wipe all three-letters .DOC files in
  92.                                   D:\DOCS and under, except the new ones,
  93.                                   and don't display anything but errors.
  94.  
  95.    DELDIR a: /i/e/d #*.cpp      : delete whole diskette in A:, except the
  96.                                   C++ files, ignoring DDOPT, hardware
  97.                                   faults and user interruptions.
  98. About...
  99.  
  100.    This program is freeware, it can be freely copied and used without any
  101.    restrictions. I hope you appreciate its versatility and many options.
  102.    DELDIR is written in Borland C++ v3.0. It has been tested under DR-DOS
  103.    (5.0 and 6.0), MS-DOS (3.3, 4.01 and 5.0) and NetWare (2.15 and 3.11).
  104.  
  105.    Please report bugs and suggestions, likes and disklikes, to:
  106.  
  107.                       Emmanuel Verbeeck,
  108.                       32 Bvd de la Cambre, bte 58,
  109.                       1050 Brussels,
  110.                       Belgium, EUROPE.
  111.  
  112.    You can join me on CompuServe at [100010,3700] and on MCI Mail at 568-9552
  113.