home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / waffle / purgedir.zip / PURGEDIR.DOC next >
Text File  |  1991-03-24  |  1KB  |  33 lines

  1.  
  2.     Public Domain Waffle Ex-User Directory Purger
  3.  
  4.                      PurgeDir.exe
  5.                   by Simon McAuliffe
  6.  
  7.  
  8. This program purges directories of users who no longer
  9. exist in the user file (ie. deleted users).
  10.  
  11. The program initially reads the Waffle enviroment variable,
  12. WAFFLE, to find the static file.  From the static file it
  13. finds the location of the password file.  The password file
  14. is then read in, and a list of existing users is built up in
  15. memory.
  16.  
  17. The program then goes through each sub-directory in the user
  18. directory; if it finds a directory that it doesn't know
  19. about then it removes all files inside it, then removes the
  20. directory itself.
  21.  
  22. BUGS: If a deleted user has sub-directories or any read-only
  23.       files inside their directory then the directory will
  24.       NOT be removed.
  25.  
  26. PurgeDir is written in C and compiled under Turbo C 2.0 and
  27.          is public domain.
  28.  
  29.  
  30.  
  31. Questions: Sai <sai@tornado.gen.nz> or Pat <patrick@sideways.gen.nz>.
  32.  
  33.