Add a shutdown button to Windows 8

  
                                    

Perhaps the innovation of Windows 8 is too fast, perhaps the horror of user habits. In short, most people do not adapt to its shutdown method. If we do not want to use untrusted third-party software to modify it, Then we can DIY a own shutdown button.

A few simple steps can be done

For example:

First, we create a new shortcut on the desktop

and then enter the corresponding command.

Such a shortcut is created. We found that this icon is not very satisfactory, so we changed the corresponding icon.

The corresponding icon can be found and modified in the system, or you can download it yourself on the network. I have found a few more beautiful ones.

Click Browse to select the icon file path

Then the shortcut becomes like this

After we have made all the shortcuts. Copy it to the Start menu. (This requires administrator privileges.) How do I get this?

The path to the Start menu: C:ProgramDataMicrosoftWindowsStart MenuPrograms, of course, if your system disk is not a C drive, Just change the C in front of it.

To find the way to start the menu path, right-click on the shortcut to select a desktop program and select Open File Location.

Then find our shortcut on the far right of the start interface and regroup the shortcuts (left click on the sticker and drag to the right for a certain distance until a white line appears. >

)

The last is like this

Finally, we click on the minus sign in the lower right corner (press CTRL+mouse wheel), shrink the entire interface, and move the tile group to the end. A grouping is just fine, and I put the desktop stickers. Then it becomes like this

Then everything is done.

Let me share some information.

About shortcut location

Shutdown: shutdown.exe -s -t 00 -hybrid

Restart: shutdown -r -t00

Lock: rundll32.exe user32.dll,LockWorkStation

Logout: shutdown.exe -l

Careful friends will find out what is actually in my start menu There are also sleep and sleep options. Why didn't the interface start?

This is a problem that has been bothering me for a long time, and it has not been solved very well.

First talk about these two commands

Sleep command: rundll32.exe powrprof.dll, SetSuspendState 0,1,0

Sleep command: shutdown -h

It seems that there is no conflict, but if you want to call the sleep command normally, you first need a statement to disable the hibernation function (this statement must also be run as an administrator), otherwise it will go directly to sleep instead of sleeping. But if you disable hibernation, then the hibernate shortcut has no effect, so I wrote two batches

Hibernate

powercfg -hibernate on

shutdown -h

Sleep

powercfg -hibernate off

rundll32.exe powrprof.dll, SetSuspendState 0,1,0

When I changed the path of the shortcut to these two files, I found that the start program could not be displayed. I concluded that the target file should be a non-exe executable program. So what are the best ways for you to spray friends?

Copyright © Windows knowledge All Rights Reserved