Automated Shutdown with Windows
Automated Shutdown with Windows
To reset my cable modem connection I have to reboot the system a few times each day. I have automated this process and it works well but I cannot find a command line mechanism to do this. Does anyone know a way. Great program!
The option to shut down Windows is not available at this point since the system would try to kill newspro before it will purge the database data. In principle it would be feasible to invoke system restart after newspro exit, but it is not possible to determine what the user intended to do - shutdown, log off or restart. I'm planning to resolve the problem at a later stage, now it is not trivial because of multithreaded nature of the current implementation.
After NewsPro gets Windows shutdown message - it will shut down and display a message box stating that now you can shutdown Windows, then if you shutdown Windows there will be no problem, so if you can catch the edit box or even just initiate the Windows restart in the second time with a minute delay (it doesn't matter that the message box is being displayed) - it will work automatically then.
After NewsPro gets Windows shutdown message - it will shut down and display a message box stating that now you can shutdown Windows, then if you shutdown Windows there will be no problem, so if you can catch the edit box or even just initiate the Windows restart in the second time with a minute delay (it doesn't matter that the message box is being displayed) - it will work automatically then.
Is it automatic?
Ideally you should wait for the dialog box to appear then you can invoke shutdown again (you may push the button but it is not necessary since it is shown after everything has been saved).
If it is difficult to catch the box - you may just invoke shutdown with a delay (e.g. after 1 min).
Ideally you should wait for the dialog box to appear then you can invoke shutdown again (you may push the button but it is not necessary since it is shown after everything has been saved).
If it is difficult to catch the box - you may just invoke shutdown with a delay (e.g. after 1 min).