Right click a blank area on your desktop. Scroll down to New and scroll over to Shortcut.
Next place the command you want create in the Create Shortcut box.
Click Next and title the shortcut click Finish.
Done.
Shutdown:
Shutdown.exe -s -t 00
Restart:
Shutdown.exe -r -t 00
Lock:
Rundll32.exe User32.dll,LockWorkStation
Sleep:
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
Standby (Flashing power button):
Open a command prompt (admin) window
Type or copy and paste powercfg -hibernate off and press enter. Close the command prompt window.
rundll32.exe powrprof.dll,SetSuspendState Standby
Nguồn: https://hqclix.net/
Xem thêm bài viết khác: https://hqclix.net/cong-nghe/
Xem thêm Bài Viết:
- Giới thiệu cho bạn một số thông tin về các phím tắt trong Corel X7
- Tổng hợp danh sách phím tắt trong SketchUp đầy đủ và thông dụng nhất
- Hướng dẫn cách sử dụng địa chỉ tuyệt đối trong Excel hiệu quả
- Bật mí cho bạn tất tần tật các phím tắt trong Sublime text 3
- 03 cách chỉnh độ sáng màn hình máy tính Win 10 (laptop, PC) cực đơn giản
All Comments
Thanks bro
Thank you very much
Thank you very mucg
you helped a lot
Thanks man – Also thanks for putting the commands in the video description. helped out alot
very nice men
go on doing such type of short cuts
thanks alot
how do u assign a key on keyboard to shut down comp in win 7??
Can i have sleep and hibernate buttons?
Pls tell me how to set a icon for lock screen
It doesnt work when I turn off hibernate
l tryed on windows 10 and working
Thank's
is this safe?i mean in the safe way. i dont want to broke my computer again (yes,i have broke my windows 7 many times)
[ rundll32.exe powrprof.dll,SetSuspendState 0,1,0 ] doesn't make the windows sleep the way I expect. As I expect, when my laptop sleeps, my laptop's power light slowly fade and light up – This command completely turn off the power light, when I wake my laptop up, it should go directly to the lock screen, skip the Manufacturer's Logo and "Resuming Windows with MS's Logo fly" – this command don't skip.
Is there anyway to get exactly the command the Windows' sleep button have?
OUTSTANDING! Just what I needed as my new computer didn't come with a sleep button on the Keyboard. BTW. I used the ShortCut Key option in the ShortCut Properties to assign a key on the keyboard. I used one of the function keys and it works like a champ.
sleep don't work. when i use the command "rundll32.exe powrprof.dll,SetSuspendState 0,1,0" my pc go in hybride mode
liked it. I'm nervous ….doing my first office shutdown today and this concise operation could come in handy
Thank you very much for taking this effort! I just created my sleeping icon and opened a cmd.exe command prompt as being an administrator. The full command you can use is:
powercfg /hibernate off
or
powercfg /hibernate on
How do you know/ where to find what to put in shortcuts? Cause for sleep that's a pretty long title, so where do you find it?
Any way to get an icon for the sleep function?
Thanks so much!!
「Shutdown.exe -s -t 00」 for SHUTDOWN 「Shutdown.exe -r -t 00」 for RESTART 「Rundll32.exe User32.dll,LockWorkStation」 for LOCK 「rundll32.exe powrprof.dll,SetSuspendState 0,1,0 for SLEEP
thnx you verrry muchhh
How does this work? There is always an Error when I try to run these commands.
You're welcome.
thank you really helped
You're welcome.
thanks, very well explained.
Good tip.
you forgot to mention that hibernation MUST be turned off for sleep to work otherwise it just hibernates instead of sleep. windows q search for cmd, run as admin. type powrcfg -h off in run window. Then it will work. do the same with on to turn hibernation back on.
You're welcome.