home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast2.iso
/
waffle
/
purgedir.zip
/
PURGEDIR.DOC
next >
Wrap
Text File
|
1991-03-24
|
1KB
|
33 lines
Public Domain Waffle Ex-User Directory Purger
PurgeDir.exe
by Simon McAuliffe
This program purges directories of users who no longer
exist in the user file (ie. deleted users).
The program initially reads the Waffle enviroment variable,
WAFFLE, to find the static file. From the static file it
finds the location of the password file. The password file
is then read in, and a list of existing users is built up in
memory.
The program then goes through each sub-directory in the user
directory; if it finds a directory that it doesn't know
about then it removes all files inside it, then removes the
directory itself.
BUGS: If a deleted user has sub-directories or any read-only
files inside their directory then the directory will
NOT be removed.
PurgeDir is written in C and compiled under Turbo C 2.0 and
is public domain.
Questions: Sai <sai@tornado.gen.nz> or Pat <patrick@sideways.gen.nz>.