home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / DIR / DFS097.ZIP / READ.ME < prev   
Encoding:
Text File  |  1992-03-06  |  4.3 KB  |  126 lines

  1.  
  2.  
  3.  DFS 0.97
  4.  (c) Copyright Dan Vasaru 1991.
  5.  
  6.  
  7.  
  8.  Delete directory tree,find/list files with certain patterns in their names,
  9. computes dir./lists size
  10.  
  11.  
  12.  Usage :
  13.  dfs [-flags] dirpath filespecs -x excl_filespecs
  14.  
  15.  Deletes filespecs in dirpath and below, excluding    excl_filespecs.
  16.  
  17.  Flags :
  18.     -v verbose, use it to count files while deleting
  19.        check filenames ,don't do delfcb before looking for subdirs.
  20.        Verbose will skip the fcb deletion phase (which offers no control
  21.        over what is deleted. )
  22.     -d DEBUG lists all the files and exits. Use it to check what you
  23.        are deleting .Implies verbose.
  24.     -u no recurse in subdirectories
  25.     -n no prompts . DANGEROUS !
  26.     -c just count the files and sizes
  27.     -k keep dirs even if they are empty
  28.     -h prompt before deleting hidden/readonly/system files
  29.  
  30.  Param
  31.    dirpath : any valid DOS path ( without terminating backslash )
  32.        filespec : a wildchar'd filename. '*' replaces any string, while
  33.                            '?' replaces a char.Thus, use '*wp?t*' denotes all files
  34.                           containg the string 'wp' followed by an other letter
  35.                           followed by a 't'. Don't forget the ending in '*'as matching
  36.                           stops only on end_of_strings.
  37.  
  38.  WARNING ( take it as a hint ). Always use the -D option to check what you
  39.                       actually are deleting.
  40.    examples :
  41.               1.      dfs -v a:\ -x *.com
  42.                           --deletes all the files on a: less those with com extension
  43.  
  44.               2.      dfs -d c:\ *.sys *.pys *.asa -presents a list of all the files on
  45.                           the c: drive that has the extension .sys or .pys or .asa.
  46.  
  47.               3.      dfs -n c:\ *old\*.sys --to delete all the .sys files in and
  48.                                               under the c:\ directory, which have old\ as
  49.                                               part of their pathnames
  50.  
  51.       4. Find file :
  52.       dfs -d path filename
  53.           ^^
  54.  
  55.       5. Compute dir size :
  56.      dfs -d -u -c path
  57.  
  58.       6. Compute dir&subdir size
  59.      dfs -d -c path
  60.  
  61.       7. List files that are in the usr subdirectory of any diretory, that
  62.      has the  extension .c
  63.      dfs -d \ *usr\*.c
  64.  
  65.       8. Delete empty directories :
  66.      dfs -v -h startpath invalid_file_name
  67.  
  68.       9. Delete all files with \old\ in the path, except the .c and makefile
  69.      files
  70.      dfs \ *\old\*.* -x *.c makefile
  71.  
  72.  
  73. FILENAME can be a string that contains * ? which will stand for any
  74.      number of any chars (*) or any char (?) in the full path name
  75.      of the current evaluated file
  76.  
  77. Wishlist :
  78.     I would like to introduce kind of recover file,so that a
  79.     100% reliable quick unerase in case of disasters(del all files)
  80.     would become possible. The program could keep track of deleted
  81.     directories and files for each session...
  82.     The Documentation could be improved.
  83.  
  84.  Warning : Version 0.950123 deleted all my files on the working partition !
  85.                        (I forgot to use -d)
  86.                        But now things should (!!!) be ok.
  87.  Bugs:
  88.           Sometimes the size reports are inaccurate
  89.           Other UI related problems.Does work,though.
  90.  
  91.  History :
  92.  
  93.  10.07.1991 0.96 dan Fixed del RO HI bug, prettied the interface
  94.  29.06.1991 0.95 dan bug fixes, introduced simple wildchar match, added
  95.              file exclusion with match.
  96.                                        
  97. Any bug reports, congratulations *grin* etc can be mailed to :
  98.  
  99.       Dan Vasaru
  100.       studpost. 206 NTH
  101.       N-7034 Trondheim,Norway
  102.  
  103. E-mail : dvasaru@lise.unit.no
  104.  
  105. Copyright :
  106.      This software is hereby placed in the Public Domain.You can distribute,
  107.      modify and distribute the modified files as long as the original copyright
  108.      notice is not removed.Changes should be added to history.
  109.  
  110. Contributions :
  111.        If you do like the program , nobody can stop you from sending a small
  112.        contribution (big enough for a beer in Norway, though: ~7 $).Higher
  113.        contributions would earn you a Disk of Honour with the latest version
  114.        of the program and the right to ask more from me (that is docs,features).
  115.        But, no promise unless you hire me :-).
  116.  
  117. Disclaimer :
  118.        Since this is PD software , I assume no responsabilies for losses or
  119.        damages caused by the misuse of this program.
  120.  
  121. REMAINDER :
  122.        Don't Forget The -d parameter the first time U use the prgrm ...
  123.        
  124. OBS : There will never be a >1.0 Release. Watch out for modified copies, since
  125.       the program *is* potentially dangerous.
  126.