Thanks for the suggestion, but this will not do what I need. I have a batch file which can detect errors and restart applications to correct them, but if this fails I want it to reboot the PC and log back in. I will not always be near a PC so it needs to be able to do everything itself.