Setting my computer to reboot frequently

  • Thread starter Thread starter Boe
  • Start date Start date
B

Boe

I have an app that sometimes unloads on its own. When I'm gone over the
weekend, I need it to reload or for the computer to reboot so it will be
reloaded. Is there a way already built into windows that will allow you to
do this?
 
What version of Windows?

Look at Control Panel, Scheduled Tasks.

Can you create a .cmd file (nt version of a .bat file) that will re-start
(or, better yet, explicitly attempt to stop, and then re-start the app?)

I haven't looked at restarting a machine via a scheduled job--I'm reasonably
sure it is quite possible, but I haven't had the need. I think shutdown
with the -r argument would do the job on XP.
 
Windows XP Pro, SP1

Thanks for getting me started. It currently looks like that can only be set
for daily, weekly when the computer starts, etc. Is there a way to set it
for every 2 hours on the weekends?
 
Definitely.

In addition to the GUI mode scheduler, there is a command-line scheduler:

AT <enter>

At worst, you can create .CMD file with specific scheduled tasks (one line
for each one 2 hours apart)

On the GUI, the wizard gets in the way.

Set up a dummy task, and keep hitting advanced when you see an advanced
button. You can set a start date and an end date and schedule every 120
minutes, I believe--but mess with it and see if it will do the timing you
want.

If not, the command-line stuff, triggered at a specific time by the gui may
be what you want. (i.e. set up a .cmd file containing AT commands spaced 2
hours apart for the duration you want, and trigger it with a gui command at
the time Friday night that you want, and a 1 week repeat)

Some combination of these things will do what you want, I am sure.
I believe that the GUI alone ought to be possible, but I tend to look at
command-line stuff and you might just need a combination of the two.
 
Thanks again. I looked into using shutdown using the GUI but I couldn't set
it to do so more than once a day. I checked out the command line arguments
and couldn't figure a way of scheduling it for weekends only and a few times
a day.
 
Nah--this is dead easy.

Did I tell you to set up the task first, as a dummy, then look at the
properties?

I have in front of me a task whose schedule tab reads:

Weekly start time 12:01 AM every 1 weeks on sat and sun.
click on advanced
repeat task every 2 hours until duration 23 hours 58 minutes
if the task is still running, stop it at this time.

That sound like what you are looking for, roughly?

Forget the silly wizard and work directly with the property sheets of the
task. some of the terminology is a bit strange, but it is VERY functional.
Also rock solid. There are some oddities of permissions/authentication that
I think you won't run into. In addition, assume NOTHING about paths, etc,
in stuff in a .cmd file to be run by a scheduled task--give complete paths
for every object--executable, data file, whatever.
 
Thanks!!!!!!


Bill Sanderson said:
Nah--this is dead easy.

Did I tell you to set up the task first, as a dummy, then look at the
properties?

I have in front of me a task whose schedule tab reads:

Weekly start time 12:01 AM every 1 weeks on sat and sun.
click on advanced
repeat task every 2 hours until duration 23 hours 58 minutes
if the task is still running, stop it at this time.

That sound like what you are looking for, roughly?

Forget the silly wizard and work directly with the property sheets of the
task. some of the terminology is a bit strange, but it is VERY functional.
Also rock solid. There are some oddities of permissions/authentication that
I think you won't run into. In addition, assume NOTHING about paths, etc,
in stuff in a .cmd file to be run by a scheduled task--give complete paths
for every object--executable, data file, whatever.
 
Use your task manager and add the command shutdown /r
then just schedule this to occur as frequently as you
would like.
 
Back
Top