Skip to main content

How to schedule an auto shutdown by command prompt

In many day to day activities, there are many occasions we need to set the computer to shutdown automatically. There are many software to achieve this simply. Wise Auto Shutdown is a best freeware to do this. But I'm going to tell a simple method to achieve this by command prompt without any additional software. 

1. Start command prompt
2. Type in command prompt as follows.

shutdown /s /t <time>

In this command time should be mentioned in seconds.

In the above example I used the value 3600 as time. That means computer turns off after 3600 seconds from now(1 hour from now).

Not only shutdown other power operations like log off and restart also can be done by this command. But those operations cannot be scheduled. 

Shutdown: shutdown /s .t time
Restart: shutdown /r
Log off: shutdown /l
Hibernate: shutdown /h

For more help on command shutdown type,

shutdown help


shutdown /?


Popular posts from this blog

How to play Sinhala subtitles(or any other custom fonts) using MX Player on any Android device

Do you know that you can play sinhala subtitles on your android device using MX player even though the device doesn't support sinhala rendering. Just a simple procedure.

Spring Transaction Management over multiple threads

Spring framework provides a comprehensive API for database transaction management. Spring takes care of all underlying transaction management considerations and provides a consistent programming model for different transaction APIs such as Java Transaction API (JTA), JDBC, Hibernate, Java Persistence API (JPA), and Java Data Objects (JDO). There are 2 main types of transaction management in Spring. They are declarative transaction management which is a high level one and programmatic transaction management which is more advance but flexible.

The Spring API works very well with almost all of the transaction management requirements as long as the transaction is on a single thread. The problem rises when we want to manage a transaction across multiple threads. Spring doesn't support transactions over multiple threads out of the box. Spring doesn't explicitly mention that in the documentation. But you will end up with run time errors or unexpected results if you try to do so.

Root Sony Xperia E3 or E3 Dual

This guide is only valid for Sony Xperia E3 and Sony Xperia E3 Dual only. And this guide has been completely tested and succeeded with Sony Xperia E3 Dual (D2212).