Hi all I was wondering if there was a way to have scripts run before a windows 98 system is shut down. The Idea is to delete temp files, delete intenet tempory files, cookies etc, start a registry check program, start the scandisk and when finished, run the disk defragmenter if any files in a partition were modifyed since last boot up. I have seen batch scripts executed on computers at collage and thought I could do all this. Could someone please help me here? thanks in addvance!!!