- Get link
- X
- Other Apps
Hi guys i want to show you how to control the system power with command prompt. The steps involves the:
On your system and press and hold down the Windows key with the R key to bring the Run box, type 'cmd' or 'command' and hit the enter key to bring the command propmt/DOS Window. When the window display on your screen do the following:
Type the this 'shutdown -s
', please don't include the quote the system will shutdown after 25 seconds because that is the default timing for a shutdown when the count down is not specified.
Type this code without the quotes 'shutdown -l
' and press the enter key to execute the command and immediately the system will log off the current user.
Type this code 'shutdown -h
' and press the enter the key and the system will be hibernated.
Type this code 'shutdown -s -t "60"
and press the enter key. The value in the quotes specify the time of execution and the time is measured in seconds so our coded will shutdown the system after 60 seconds.
Type this code 'shutdown -s -c "I will shutdown less a minute"
. In this code the system will display a shutdown dialog with a comment on it just like the one with added there. You can also include the timing into the code like shutdown -s -t "120" -c "Hi! I will shutdown in 2 minutes"
.
Type this code exactly into your cmd window and hit the enter key to see it works.
Was this helpful? Please your comment
Comments
Post a Comment