If you use this send me an email at mhitchco@cox-internet.com One thing that may cause a problem is I have change pfiles to be saved in directories starting with the first letter of the characters name. It shouldn't be overly difficult to alter the wipe_pfile function if you save pfiles as stock rom does. Also I have only tested this on a unix server and doubt it will port over exactly to windows since I use gzip to zip pfiles when I archive them. You will also need to create an archive directory if you want to use the archiving feature. I haven't finished this feature yet. I had planned on have the mud check the archive directory for a pfile if it didn't find it in the pfile directory. Add the following to merc.h: #define ARCHIVE_DIR "../archive/" /* Archive for pwiped pfiles */ #define PFILE_EXPIRE 90 /* Number of days before archiving inactive pfiles*/ #define ARCHIVE_EXPIRE 60 /* Number of days before removing archived pfiles*/ void wipe_pfiles args( ( void ) ); void remove_inactive args( ( char*, int ) ); Add the following to comm.c right before boot_db(): logf( "Wiping Inactive Pfiles"); wipe_pfiles(); logf( "Removing Inactive Archive Pfiles"); remove_inactive( ARCHIVE_DIR, ARCHIVE_EXPIRE); Add the pwipe.c file to your source directory make clean and compile then hope it works :) Trent