DIY Auto Shutdown Windows 7

Filed in Laptop & Notebook , Software , Technology , Windows Matter 0 comments

Guys, do you know that we can make our Windows PC to auto shut down?

And more interesting is no third party software required to make your Windows machine turn itself off automatically. No additional software mean more disk space and more free memory :)

What we have to do to?:

1. Create a very simple shutdown script
2. Schedule windows to run the script

Creating a shutdown script

Create a new folder on desktop or any location and name it as “shutdown” or any other name.

Shutdown Folder

Navigate to that folder and create new Text Document (Right click > New > Text Document),

New Text Document

Then rename it from “New Text Document.txt” to “shutdown.bat” and a warning will come out, just click Yes.

Rename Warning

If the icon changed to the gear icon, then Windows Batch File (.bat) that will be use to create shutdown script has been successfully created.

Windows Batch File

Ok now edit the shutdown.bat file to write a shutdown command.

Edit BAT File

Type this phrase or command “shutdown /p” as shown below and save the file:

Shutdown Command

Done!! The script is ready to use. Now PC will shutdown if we double click the shutdown.bat file.

Schedule Windows to run the script

Windows has a schedule feature to run script or any program automatically. What we have to do is configure the execution time to run the particular script or program.

Ok, now we will schedule our Windows machine to shutdown on 12:00PM by using Task Scheduler.

Click on Windows logo and type “task” in the search bar and click on Task Scheduler.

Task Scheduler

Create Task by clicking on Action Tab > Create Task

Create Task

Under General tab, give the name for this task, example “shutdown 12PM“.

Create Task General Tab

Under Triggers tab, click on New button to set the time, when we want to execute the script. In this example, we want the Windows machine to shutdown everyday on 12.00PM

Create Task Trigger

Under Action tab, set Action to “Start a program” and browse to location that we put shutdown.bat script, in this example “C:\shutdown\shutdown.bat”. Then, click OK.

Create Task Action

Then, Task Scheduler windows should be look like this:

Task Scheduler Created

On task scheduler windows, look at the bottom-right pane. We can test to run the selected task. Our PC should be turn off if we click on Run menu.

Task Test Run

By the way, instead of “shutdown /p” command, there are other shutdown parameter that we can use in shutdown.bat file. Try one by one if you want to see how each parameter work :)

Shutdown Parameter Windows 7

**This example hasĀ  been created on Windows 7 environment. Task scheduler GUI or shutdown parameter maybe different with other windows version such as Windows Vista or Windows XP. But the way or basic idea to create this autoshutdown script is same.

Blog Widget by LinkWithin
Posted by Far East   @   10 January 2010 0 comments
Tags : , ,

Share This Post

RSS Digg Twitter StumbleUpon Delicious Technorati

0 Comments

No comments yet. Be the first to leave a comment !
Leave a Comment

Previous Post
« Install Oracle 10g on OpenSuSE 11.1
Next Post
Common Oracle Error ORA-12560 »
Delighted Black designed by Christian Myspace In conjunction with Ping Services   |   French Teacher Jobs   |   Maths Teacher Jobs