Simple Informations

« How I had an overnight increase in Technorati rank... | About Me | Contact »Clear full Internet History from IE, delete the in... | About Me | Contact »RSS feed icons get it in colors and sizes | About Me | Contact »Prevent Spam, use 10minutemail to signup | About Me | Contact »Blacken Google, the Google Shadow | About Me | Contact »Get your blog reviewed for free | About Me | Contact »Send personal mails with fuzzmail.org | About Me | Contact »Text Link Ads Calculator and some bids.. | About Me | Contact »Google advertise for Yahoo Answers..? | About Me | Contact »Batch Files - when you need to run commands automa... | About Me | Contact »

posted by Ajith at ,Monday, April 2, 2007

Shut down your system after you sleep


After I wrote this post some major changes to be made had been noticed the first change is that if you use tha name shutdown.bat for the batch file there can be ambiguity with the shutdown command of Windows and when the Scheduled task runs there can be an infinite loop. The system will just open a command prompt and run the command infinitely instaed of shutdown. So what you need to do is make the batch file with some other name than shutdown.bat
There are a number of occasions when you feel asleep but can't go to sleep just because you are copying something important or because you have to just sit there for some processes to complete (eg. de-fragmenting ) and then Shutdown your computer. I have faced this many a times and decided to find something simple. although you may use system shutdown utilities there actually is no need for such programs here.

All of you know that Windows has got an inbuilt Task Scheduler. We are using this and Batch Files to make this possible. The Windows task scheduler allows at to run specific programs, open files or run scripts at pre-specified time and a Batch File allows us to run a command Line command on the Click of a mouse. So here are the steps to make the shutting down possible.

Correction! 1. Make a Batch File named Shut.bat (or whatever you need) and type in shutdown -s then save it.Make a batch File.
2. Take START»All Programs»Accessories»System Tools»Scheduled Tasks. Double Click on New Task. No a Scheduled Task Wizard will appear. Click "Next". A dialog allowing you to select the program to be run will appear.Scheduled Task Wizard.. Click on "Browse" and Go to the folder where you saved the Shutdown.bat. Select your file and Press "OK".

If you need to open a file or something at a prespecified time select it, just make sure that in FILES OF TYPE you specify ALL FILES.


3. On the Next dialog Enter your TIME to shutdown and PASSWORD and other options if necessary. Close the wizard and you are done.

Now when the time for shutdown arrives the Batch File is automatically run and the "shutdown -s" command tells the computer to shutdown. Here a time limit of 30 seconds by default is provided before Shutdown (if you need to change this change the command -s it is given here)Shut Down Warning If you need to cancel the shutdown now goto command Prompt (shortcut WIN+R type cmd) and type shutdown -a this Aborts all Shutdown processes. Abort Shutdown.
So the Next time you are in a situation like this "go get some sleep" , the computer will take care of itself.
External Links : None

Add to Delicious | Submit to Netscape | Stumble this

Labels: , ,

9 Comments:

  • you can also use this software
    AMP winOFF easy to use and has many options from ampsoft.net

    By Blogger shashank, At April 2, 2007 11:20 PM  

  • This tip is really useful, but more easily we can shutdown the system using softwares..there are quite a few of them.

    By Anonymous Nirmal, At April 3, 2007 11:52 AM  

  • Well NIRMAL and SHASHANK you are both right.. but this is the tip that can be used any where, even if softwares are not available... Beside some people like me don't really appreciate installing tons of softwares..

    By Blogger Ajith, At April 3, 2007 3:01 PM  

  • This is exactly what I needed to see. I knew how to shutdown the computer, but I kept getting the infinite loop and didn't know why. Renamed my file and it worked like it should have hours ago!

    By Anonymous Anonymous, At July 28, 2007 3:55 PM  

  • hi this look really useful but my PC shut down right after i logged on please help!!

    By Anonymous Agent47, At December 16, 2007 5:17 PM  

  • Hi Agent47 can you please contact me at ajithkpunnoose 'at' gmail.com
    Ill reply through email and then post it at my new blog : Exnol - Simple Informations Is it OK

    By Blogger Ajith, At December 16, 2007 9:02 PM  

  • what do u use ? MSN? oh and write me ur email again please thank you

    By Anonymous Agent47, At December 16, 2007 10:06 PM  

  • for ur information my PC countdown was like 3 second i haven't got time to do anything

    By Anonymous Agent47, At December 16, 2007 10:15 PM  

  • Hi Agent47
    I think the script doing this on your system will have the -t switch used along with shutdown ie:
    shutdown -s -t 03
    This can be done in many ways actually so please tell me what OS (XP - prof or home) you are using. and my email is

    ajithkpunnoose'at'gmail.com

    By Blogger Ajith, At December 17, 2007 8:27 AM  

Post a Comment

Subscribe to Post Comments [Atom]



<< Home


 
About Me | Contact