home *** CD-ROM | disk | FTP | other *** search
- Path: kuhub.cc.ukans.edu!moe.ksu.ksu.edu!zaphod.mps.ohio-state.edu!usc!news.bbn.com!ulowell!cs.ulowell.edu!oneill
- Newsgroups: comp.binaries.ibm.pc
- Subject: v18i042: deldir10.zoo, Recursive directory and file removal (part 01/01)
- Message-ID: <1992Apr22.131602.15999@ulowell.ulowell.edu>
- From: cbip@cs.ulowell.edu (CBIP Moderator)
- Date: Wed, 22 Apr 1992 13:16:02 GMT
- Sender: usenet@ulowell.ulowell.edu (News manager - ulowell)
- Followup-To: comp.binaries.ibm.pc.d
- Organization: University of Massachusetts at Lowell Computer Science
- Keywords: utility, directory, delete
- Approved: oneill@cs.ulowell.edu
- Originator: oneill@cs.ulowell.edu
- Lines: 313
-
- Checksum: 284555942 (Verify with "brik -cv")
- Submitted-by: skanga@prism.poly.edu (Shiraz Kanga)
- Posting-number: Volume 18, Issue 042
- Archive-name: deldir10/part01
-
- DELDIR10.ZIP Safe recursive directory and file removal pgm
-
- DELDIR is a safe recursive directory & file removal program. It
- enables you to remove an entire branch of the directory structure in one
- fell swoop by recursively deleting all of it's files and subdirectories.
- Since this is potentially risky operation there are three levels of
- safety built in, which may be specified as an argument on the command line.
-
- Level 1 is the safest. It will prompt you before deleting any directory
- or file. It is much safer than even the DOS del *.*, but slower.
-
- Level 2 is faster. It prompts you before deleting directories but not files
- Quite safe and fast enough. My personal favorite.
-
- Level 3 is the fastest. It will delete files & directories without any
- prompts. Very destructive and fast. Good for use in batch files.
-
- Level 1 is the default if no safety level is specified.
-
- As a safety precaution DELDIR may not be invoked on the root directory.
- This program deletes a directory and its subdirectories by recursively
- removing its files, and then the directory itself. The directory tree
- is traversed in a depth first search (DFS) order. It returns an error
- code of -1 if it fails, or 0 if everything is OK.
-
- To be added: support for wildcards
-
- Shiraz Kanga
- skanga@prism.poly.edu
-
- [
- Checksums obtained with the 4.3BSD "sum" or System V "sum -r" command.
-
- checksum size (bytes) file (between BEGIN--cut and END--cut lines)
- 49945 16155 part01
-
- checksum size (bytes) file
- 29613 11702 deldir10.zoo
- -- Doc
- ]
-