home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / DIRUTL / MDS_RM.ARC / MDS_RM.MSG next >
Encoding:
Internet Message Format  |  1988-11-09  |  1.8 KB

  1. From: marks@tekigm2.men.tek.com (Mark D. Salzman)
  2. Newsgroups: comp.binaries.ibm.pc
  3. Subject: v01i004: rm, a "rm" clone with C source
  4. Summary: mds_rm.arc, a "rm" clone with C source
  5. Date: 8 Nov 88 18:41:05 GMT
  6. Approved: dhesi@bsu-cs.UUCP
  7.  
  8. Posting-number: Volume 01 Issue 004
  9. Originally-from: "Mark D. Salzman" <marks@tekigm2.men.tek.com>
  10. Submitted-by: "Mark D. Salzman" <marks@tekigm2.men.tek.com>
  11. Archive-name: mds_rm/part1
  12.  
  13. With all the talk in comp.sys.ibm.pc on people having trouble cleaning
  14. out and removing unwanted directories, I thought I would post this "rm"
  15. clone for the PC that I wrote.  With the correct option flags, it will
  16. find and remove every file and directory on a disk with the exceptions
  17. of the root, the current directory (i.e the one you are currently in),
  18. any directory that is linked to another name (via assign or such), or
  19. any directory that you leave non-empty.  It only uses DOS V2.0 calls so
  20. it should work on most MS-DOS compatible machines.  I also fixed a bug
  21. so it will work with PC-DOS V4.0, and cleaned up the exit status so it
  22. can be used in "make" like programs.
  23.  
  24. Enclosed in the arc are the source in Microsoft C, an EXE, and a short
  25. documentation file.
  26.  
  27. ENJOY!
  28.  
  29. Mark D. Salzman     Phone (206) 253-5542.
  30. Tektronix Inc., P.O. Box 3500, M/S C1-936
  31. Vancouver, Washington. 98668
  32. {world_at_large}!tektronix!tekigm2!marks
  33.  
  34. [
  35. Options available include query before deleting each file or directory,
  36. recursively delete directories, query before deleting files with
  37. archive bit set, verbose mode, and silent mode.
  38.  
  39. Command line style arguments may also be passed through the environment
  40. variable RMOPTS where, unfortunately, they override arguments typed
  41. on the command line.
  42.  
  43. Source suitable for Microsoft C V4.0 through V5.1 is supplied.
  44.  
  45. -- R.D.
  46. ]
  47.