is there anyway to find out if windows is shutting down and get some code to run. I'm having a few problems with temp internet files so I need these deleting when windows is shutting down. It will be running on an app that will already be loaded. Any ideas?