Step 2: Schedule it

In Windows Vista or 7 search "task"; Task Scheduler should be at the top of the list. Open it. Click "create basic task". Type in the name you want to call it and a description if you like. Specify when you want it to start. Specify date, time, and recurrence. Choose an action (start a program). Browse for the batch file. At the end, view over it to make sure it is exactly what you want, and click finish. At the task manager main menu, you will have to refresh the list at the bottom for your new batch file to appear (this is optional, it will take affect either way). It is best for the computer to restart to take affect.

Windows XP users and older with have a slightly different process. See next step.

<p>For those people which do not understand how to implement automatic shutdown actions here is something more simple described step by step so everyone can do it : <a href="http://pc-problem-solutions.blogspot.com/2014/02/set-automatic-shutdown-on-your-pc.html" rel="nofollow">http://pc-problem-solutions.blogspot.com/2014/02/set-automatic-shutdown-on-your-pc.html</a></p>
<p>ALT+F4 always works, it is faster. But you should use the combinations <br>when you are on desktop screen. Auto shutdown timer for windows is also a <br> good option. <a href="http://www.apowersoft.com/windows-shutdown-assistant.html" rel="nofollow">http://www.apowersoft.com/windows-shutdown-assistant.html</a></p>
Hi i have a similar instructable and i use the path %windir%\System32\<br>which windows should recognise on virtually all versions of windows.<br><br>Hope this helps :)<br><br>
where to put our mobile number from which we are sending shutdown command
Good tutorial ,but windows folder may be on other drive like &quot;D:&quot; :]<br />
The windows folder is on the drive that the OS is on. If your OS is on the D drive, the filepath would be:<br /><br />d:\windows\system32\shutdown...
I know but i think there is a way to shutdown a pc using other method&nbsp;(that doesn't need to have path specified)<br />
A program does not have to have a path specified, as long as it resides in one or more of the directories listed in the <em>%path</em>%<em>&nbsp;</em>variable. To see the path, open command prompt and type <em>echo %path%</em>. <br />
Doing that with shutdown.exe automatically make it perform an immediate shutdown. It may not always be what someone wants though.
I'm assuming you had meant to reply to my other comment. This is <em>false</em>. With the &quot;/t xxx&quot; switch you can delay it as long asdesired. It is exactly the same as referring to it inside of a batch file.<br />
Command prompt does not require typing the entire filepath.
Hmm. You're creating a batch file to run a single command. Unnecessary?<br /><br />Next time, just try scheduling the task to run shutdown.exe. And the /h (hibernate) switch for shutdown.exe is only compatible with Vista, and maybe Windows 7. Unsure about the latter though.<br /><br />
Simply running shutdown.exe does not work if you have tried it.
Uh, it <em>has</em> to work. A batch file is literally a set of programs with specific parameters to run. You are most likely running it without parameters. In the task scheduler, set it up to run shutdown.exe directly; not the batch file. Where it says &quot;Add Arguments&quot; try &quot;/s /t 30&quot; or another parameter; it should work. It <em>has</em> to work.<br /><br />
A bonus to batch files&nbsp;are that they can run outside a schedule actually in Windows, though I am not sure what for exactly.
I am not sure what you are trying to communicate.<br /><br />A batch file is a list of programs located within the path. A batch filewith a single command is useless because you can simply refer to thecommand directly. Anything you can do with <em>that</em> batch file, you can do without.<br />
Then that is another way to do it.
A lot of tasks that will run while you're in bed have the shutdown option: what are you running on this?<br />(interested)<br /><br />L<br />
Why do you use this or what for?<br /><br />L<br />
It could be used for a server. I currently have no use for it but I thought I would just share some knowledge.
OK.<br /><br />L<br />
For Linux just edit your cron file:<br /><br /># To restart daily at say 4 AM:<br />0 4 * * * reboot&nbsp; # (or shutdown -r)<br /><br /># To restart the first day of the month at 4 AM:<br />0 4 1 * * reboot<br /><br /># To restart to shutdown at 12:01 AM on New Year's Day:<br />1 0 1 1 * shutdown <br /><br /># To restart Monday at 6 AM to be ready for the upcoming workweek:<br />0 6 * * 1 reboot<br /><br /># Columns are:<br /># 1 minutes<br /># 2 hours<br /># 3 day of month<br /># 4 month<br /># 5 day of week<br /><br /># for more information `man 5 crontab'<br /><br />Check this script for hibernating or suspending:<br />http://www.linux.com/news/hardware/laptops/8253-how-to-suspend-and-hibernate-a-laptop-under-linux<br />

About This Instructable


10 favorites


Bio: I am an engineering student in the midwest. in my spare time, which become increasingly non-existent, I enjoy cooking, fixing things of mine, and wasting ... More »
More by gamerguy13: Delicious and Light Orange Chicken As Told By Ginger Bars Fix a broken blind with only a broken pen clip and scotch tape
Add instructable to: