Skitterbug wrote: ↑23 Aug 2022, 02:35
I am confused because it says to ShutDown rather than Startup?
You can always get help on an old DOS command by typing the command followed by a space, forward slash, and question-mark.
I have attached a text file that shows the output of the "Shutdown.exe /?' command.
The parameters of most interest to you are probably these:-
Code: Select all
/s Shutdown the computer.
/r Full shutdown and restart the computer.
/a Abort a system shutdown.
This can only be used during the time-out period.
/t xxx Set the time-out period before shutdown to xxx seconds.
/f Force running applications to close without forewarning users.
The /f parameter is implied when a value greater than 0 is
specified for the /t parameter.
My command line sample reads:-
-r - so this is restart, or as MS says full,shutdown and then restart the computer - which is, I think, what you want.
-t 00 - so don't hesitate, just DO IT! This leaves me no time for saying "no, hang about a minute, not right now ..." etc.
-f and this says to bulldoze any open applications, documents etc into the local dump.
I recommend that you open a DOS ComManD prompt to play with these options before you dive into task scheduler. That is, manually issue the commands get to know the relevant options and watch how they operate before you invest time in automating the process.
I want the computer to start up the same time every day?
This you do by setting up a task in Task Schedulre, although my peers and superiors suggest the new-fangled scripting. I
tried this a couple of years ago but couldn't get it to work.
I should maybe revisit those threads and try again.
I believe that the new methods ARE more versatile, but as well they came with a learning curve that was too steep for me, at that time i was getting the house rewired and going all-electric.
In summary you have two tasks to resolve and implement:-
(1) The business of restarting your computer by some sort of script or command
(2) running that script or command at a specified time.
Right now I am having problems with a critical part of my AutoExec.bat (boot) file, so I am issuing my Restart.bat manually whenever I feel like rebooting, and issuing my AutoExec.bat manually first thing each morning while the

is making itself.
Hang in there, kiddo. Remember that you are smarter than the average USA citizen!
Cheers, Chris
You do not have the required permissions to view the files attached to this post.