Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a laptop back home with Windows Vista installed.

I want my computer to fall asleep automatically at 01:30 AM and wake up at 06:30 AM.

I have tried a lot, but making a .bat file which makes it fall asleep needs to be manually activated. How can I do it automatically?

share|improve this question
Depending on how powerful your PC is, not using aero could actually be detrimental to performance. If your GPU is capable of doing everything by itself, then taking the strain of drawing windows off of your CPU and putting it into the otherwise idle GPU is a Good Thing. –  Phoshi May 23 '11 at 12:12

3 Answers 3

up vote 0 down vote accepted

For Statup, there should be a setting in the BIOS, but without more details can't really help.

  1. You'll need a batch file, scheduled to run at 1:30am. Copy and paste this into a txt file, save it to a location where it won't get deleted (C:\Windows) as die.bat (NOT die.bat.txt)

shutdown /s /f /t 20

  1. This shuts the computer down (/s), forces any process to end (/f) with a 20 seconds timeout (/t 20). To make it sleep/hibernate, use the /h flag instead of the /s one.

  2. Next, click on start and find Task Schedular. (All Programs, Accessories, Systems Tools, Task Scheduler).

  3. On the right-hand pane, click "Create Basic Task" enter image description here

  4. Give the task a name and description (example "Shutdown").

  5. Choose when you want to task to run (example "Daily")

  6. Choose what time you want to the task to run (example "01:30:00), recur ever 1 days)

  7. Choose "Start a Program"

  8. Browse to the location of the .bat file.

  9. Click Next, Click Finish.

  10. To test, save all your work, right-click, and "Run Now".

share|improve this answer

Try Task Scheduler, built into the OS. It can, appropriately, schedule tasks to run at specific times, in response to events, and give you a decent amount of control over when these tasks repeat.

You can tell it to run just about anything, so batch files can be your friend: Though for waking up scheduled tasks won't do, as it can't run. You may be able to use wake-on-LAN, or your BIOS may be able to wake your PC at a specific time.

share|improve this answer
can you help me with the task scheduler ? have treid a bit in it, but never understood it 100% .. –  Christian J May 23 '11 at 12:26
@Christian; I'm on Win7, so it may be different on your end, but what I did was type Task Scheduler into the search bar, then hit Create Basic Task on the right hand side. From there it's all pretty straightforward, and I've never particularly delved into the more complex areas. –  Phoshi May 23 '11 at 12:33
@Phoshi; Okay, i made a task called "Turn on" at 06:30 am and one called "Turn off" at 01:30 am, so now it should be working now ? :) –  Christian J May 23 '11 at 12:49
@Christian J; If they're tied to something that would ordinarily turn the PC on and off, yes ;) –  Phoshi May 23 '11 at 13:21
so it would be enough just to make it open cmd.exe? :) –  Christian J May 23 '11 at 13:44

Check if there is an support in the bios for automatic wake up/shut down.

share|improve this answer
Not quiet the answerd i was looking for, but thanks :) –  Christian J May 23 '11 at 12:19
I have tried it and it works, however I am not sure if every laptop supports this. –  xciter May 23 '11 at 12:20
My bios dosen't support the Wake up / shut down option , but i was more looking for a Batch file or something like that, –  Christian J May 23 '11 at 12:21
can you help me with the task scheduler ? have treid a bit in it, but never understood it 100% ... –  Christian J May 23 '11 at 12:26
Wrong answer but here is a link :) thespinningdonut.com/… –  xciter May 23 '11 at 12:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.