home *** CD-ROM | disk | FTP | other *** search
-
-
- DFS 0.97
- (c) Copyright Dan Vasaru 1991.
-
-
-
- Delete directory tree,find/list files with certain patterns in their names,
- computes dir./lists size
-
-
- Usage :
- dfs [-flags] dirpath filespecs -x excl_filespecs
-
- Deletes filespecs in dirpath and below, excluding excl_filespecs.
-
- Flags :
- -v verbose, use it to count files while deleting
- check filenames ,don't do delfcb before looking for subdirs.
- Verbose will skip the fcb deletion phase (which offers no control
- over what is deleted. )
- -d DEBUG lists all the files and exits. Use it to check what you
- are deleting .Implies verbose.
- -u no recurse in subdirectories
- -n no prompts . DANGEROUS !
- -c just count the files and sizes
- -k keep dirs even if they are empty
- -h prompt before deleting hidden/readonly/system files
-
- Param
- dirpath : any valid DOS path ( without terminating backslash )
- filespec : a wildchar'd filename. '*' replaces any string, while
- '?' replaces a char.Thus, use '*wp?t*' denotes all files
- containg the string 'wp' followed by an other letter
- followed by a 't'. Don't forget the ending in '*'as matching
- stops only on end_of_strings.
-
- WARNING ( take it as a hint ). Always use the -D option to check what you
- actually are deleting.
- examples :
- 1. dfs -v a:\ -x *.com
- --deletes all the files on a: less those with com extension
-
- 2. dfs -d c:\ *.sys *.pys *.asa -presents a list of all the files on
- the c: drive that has the extension .sys or .pys or .asa.
-
- 3. dfs -n c:\ *old\*.sys --to delete all the .sys files in and
- under the c:\ directory, which have old\ as
- part of their pathnames
-
- 4. Find file :
- dfs -d path filename
- ^^
-
- 5. Compute dir size :
- dfs -d -u -c path
-
- 6. Compute dir&subdir size
- dfs -d -c path
-
- 7. List files that are in the usr subdirectory of any diretory, that
- has the extension .c
- dfs -d \ *usr\*.c
-
- 8. Delete empty directories :
- dfs -v -h startpath invalid_file_name
-
- 9. Delete all files with \old\ in the path, except the .c and makefile
- files
- dfs \ *\old\*.* -x *.c makefile
-
-
- FILENAME can be a string that contains * ? which will stand for any
- number of any chars (*) or any char (?) in the full path name
- of the current evaluated file
-
- Wishlist :
- I would like to introduce kind of recover file,so that a
- 100% reliable quick unerase in case of disasters(del all files)
- would become possible. The program could keep track of deleted
- directories and files for each session...
- The Documentation could be improved.
-
- Warning : Version 0.950123 deleted all my files on the working partition !
- (I forgot to use -d)
- But now things should (!!!) be ok.
- Bugs:
- Sometimes the size reports are inaccurate
- Other UI related problems.Does work,though.
-
- History :
-
- 10.07.1991 0.96 dan Fixed del RO HI bug, prettied the interface
- 29.06.1991 0.95 dan bug fixes, introduced simple wildchar match, added
- file exclusion with match.
-
- Any bug reports, congratulations *grin* etc can be mailed to :
-
- Dan Vasaru
- studpost. 206 NTH
- N-7034 Trondheim,Norway
-
- E-mail : dvasaru@lise.unit.no
-
- Copyright :
- This software is hereby placed in the Public Domain.You can distribute,
- modify and distribute the modified files as long as the original copyright
- notice is not removed.Changes should be added to history.
-
- Contributions :
- If you do like the program , nobody can stop you from sending a small
- contribution (big enough for a beer in Norway, though: ~7 $).Higher
- contributions would earn you a Disk of Honour with the latest version
- of the program and the right to ask more from me (that is docs,features).
- But, no promise unless you hire me :-).
-
- Disclaimer :
- Since this is PD software , I assume no responsabilies for losses or
- damages caused by the misuse of this program.
-
- REMAINDER :
- Don't Forget The -d parameter the first time U use the prgrm ...
-
- OBS : There will never be a >1.0 Release. Watch out for modified copies, since
- the program *is* potentially dangerous.
-