Page 1 of 1

Rebooting PC on a schedule

Posted: Tue 13 Nov 2012 6:49 am
by Spencer
I am running Cumulus and a website using IIS on an old laptop running XP. Works a treat but.......
The laptop needs a reboot frequently so I am scheduling it automatically each night.
My problem:
When the laptop reboots using restart.exe (using scheduled tasks) cumulus does not appear to shut down nicely. (I do not get the cumulus is shutting down message)
I have looked at using taskkill.exe but it still seems to shutdown cumulus without doing that nice shutdown.
Is anyone aware of a nice way of shutting down cumulus via a command line so I am to schedule this using a batch file.

Thanks in anticipation

Re: Rebooting PC on a schedule

Posted: Tue 13 Nov 2012 8:48 am
by steve
I've just tried

taskkill /im cumulus.exe

and I got the 'Cumulus is closing' window. The diags file shows a clean shutdown:

13/11/2012 08:44:31.434 : MainForm can close
13/11/2012 08:44:31.434 : Showing splash screen
13/11/2012 08:44:31.690 : Exit FormCloseQuery
13/11/2012 08:44:31.690 : MainForm.FormClose
13/11/2012 08:44:31.690 : Terminating threads...
13/11/2012 08:44:31.690 : Threads terminated
13/11/2012 08:44:31.690 : Cumulus closing
13/11/2012 08:44:31.744 : Writing cumulus.ini file
13/11/2012 08:44:31.759 : Terminating ftp thread...
13/11/2012 08:44:31.759 : FTP thread terminated

You haven't got 'confirm close' set, perhaps? Another possibility is that if it's busy doing ftp or something, it may take some time to close down, and the system may go ahead and restart anyway. You may need to put a delay in after the taskkill. I'd still expect you to see the 'closing' window, though.