Automated Shutdown with Windows

Post Reply
JohnM

Automated Shutdown with Windows

Post by JohnM »

:? 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! :D
alex
Posts: 4538
Joined: Thu Feb 27, 2003 5:57 pm

Post by alex »

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.
JohnM

Post by JohnM »

Thank you I will see what I can do with rtvreco to push the button and then allow shutdown
jsdkr
Posts: 27
Joined: Thu Feb 27, 2003 6:40 pm
Location: cold
Contact:

Post by jsdkr »

Sorry to butt in , just have to ask , why are you rebooting the cable modem all the time mine runs for months at a time with no problems .
; )
alex
Posts: 4538
Joined: Thu Feb 27, 2003 5:57 pm

Post by alex »

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).
Post Reply