I did the same thing in FPDOS, but I don't in Windows. If the system is not shut down properly work on why that happened. Allow Windows to clean up after itself. I don't like the idea of deleting files programatically because there are things that Windows could be doing on a reboot that you might affect.
Wayne
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown