3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Shut Down Your Computer With A Cell Phone

Step 3Create the "shutdown.bat" file

Create the \"shutdown.bat\" file
The "shutdown.bat" file is a batch file that can allow you to auto-launch applications and perform tasks just by opening it up. You can make this batch file do pretty much any Windows function you want, but for this tutorial, we are going to write a script to shutdown the computer. Here's how:

1. Open up "Notepad" by going to Start > Run > "Notepad" and then click OK.
2. In the notepad editor, type in:
c:\windows\system32\shutdown -s -f -t 00
3. Save the file to your computer. You can put it pretty much anywhere on your computer. I put mine on my C: drive.

What this batch file does is it points to the shutdown function on your computer, generally located at c:\windows\system32\shutdown. You may want to double check this, as some computers may have it listed as c:\winnt\system32\shutdown. If this is the case, then you want to change your batch file accordingly. The -s tells it to shutdown the computer. The -f tells it to force the computer to shutdown so that it doesn't get hung on any open applications. The -t sets the time for it to wait before it actually shuts down. You can set it to whatever you want, but I put in 00 to set it to zero.
« Previous StepDownload PDFView All StepsNext Step »
3 comments
Mar 21, 2012. 12:25 AMeschneider3 says:
how do you change the file so you can sleep the computer? or is there a different script or command to do that as well? if so, please tell me. :)
Feb 13, 2010. 1:18 AMsykot1c says:
Will This Work With Windows Live Mail?
Nov 20, 2008. 9:27 AMme1hi06 says:
Will this work if you want to start your computer or have it hibernate? ... Or even wake up from hibernation?
Mar 27, 2009. 7:52 AMindivara says:
Using this instead of the standard shutdown command will let you hibernate.
http://technet.microsoft.com/en-us/sysinternals/bb897541.aspx

However, waking from hibernation is not possible, at least not with this method. You'll need some way to use wake-on-LAN

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
77
Followers
19
Author:gigafide