Tips n’ Tricks – Windows

Tips n’ Tricks – Windows

Hibernate remotely – with timer

In a command shell type:

ping -n 20 127.0.0.1 > NUL 2>&1 && shutdown /h /f

(It is working – I have used it.)

The ping is to give 20 seconds to regret.

The ping is a hackish way of delaying the action. -n 20 should wait for 20 seconds.

(the double && will allow you to do a Ctrl+C to cancel the operation, if you use a simple & then Ctrl+C will make to automatically shutdown after pressing)

source: http://superuser.com/questions/83437/hibernate-computer-from-command-line-on-windows-7

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s