This video will show you how to create a desktop shortcuts and sleep/shutdown and reset windows 7 and Vista
Shutdown Computer Shortcut
——————————————-
Shutdown.exe -s -t 00
Restart Computer Shortcut
————————————–
Shutdown.exe -r -t 00
Sleep Computer Batch File
————————————–
powercfg -hibernate off
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
My bad the sleep command appears to trigger hibernation. I think the work around for this is to disable hibernation in the registry.
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlPower
In the right pane of the Power key, double click/tap on HibernateEnabled, Type in 0 (zero), and click/tap on OK.
bit of a hack…I think this works. Can’t see another way around it….
Nguồn: https://hargabaru.net/
Xem thêm bài viết khác: https://hargabaru.net/tong-hop/
Xem thêm Bài Viết:
- Vợ chồng khắc mệnh chọn nhà đất Sóc Trăng ra sao để hoá giải?
- Danh sách các biệt thự quận Nam Từ Liêm trên 200m2 đẹp mê hồn
- HƯỚNG DẪN CÁCH GÕ M2, M3 GÕ CHỈ SỐ TRÊN CHỈ SỐ DƯỚI TRONG WORD-Guide type m2 m3 in word
- HƯỚNG DẪN CÁCH TẠO Ô VUÔNG, CHECKBOX TRONG WORD-How To Add Check Boxes to Word Documents
- Hướng Dẫn Chủ Nhà Tự Đổi Mật Khẩu WiFi Bằng Điện Thoại
32 Comments
If a keyboard doesn't have, Sleep, Wake up, Power, function keys, can we activate those 3 functions, using "Combination of keys" on keyboard. If yes, let's know, how. please reply to this message. Thanks.
My sleep icon is work but i can't change the icon! 🙁 (WIN 10)
The sleep command is bad kinda, Sleep command is actually wrong and not working,
Call the sleep command correctly:
rundll32 powrprof.dll,SetSuspendState 0,1,0
And done.
Try this one if it works or not.
Oh well.
i made a special icon for it 🙂
Big thanks.. quick and straight forward to the point.. Love it!!! thanks for keeping the video posted
a vry big thnx to u sir frm the bttm of my hrt
how to work
Worked for me thank you
Is the one that he used same as shutdown /s /t 0 (for shutdown)?
but the botton of shutdown does not work
Right click on the sleep.bat file and then click properties and then check the hidden property of the file
work for windows 10 ?
Reastart don work ….
anyone can do this, i need a keyboard button assigned, cos if my mame crashes i dont have a button to press on my pitiful keyboard
signed in just to like this, thanks alot man..
「shutdown.exe -s -t 00」for SHUTDOWN 「shutdown.exe -r -t 00」for RESET 「rundll32.exe powrprof.dll,SetSuspendState 0,1,0」 for SLEEP
for your sleep shortcut it will show your text file instead of putring your computer into sleep make your shortcut type the command 「rundll32.exe SetSuspendState 0,1,0」
but your shutdown shortcut icon is still right =)
You have use the icon what that has the right-arrow in a green square for the Restart shortcut and have to put the sleep shortcut's icon you have to put the icon that has the thing looks like a disk eject symbol in a golden square xD
Soo helpful 😀 thanks
This code also works when you type it in the shortcut wizard. but you have to turn off the powercfg -h off on the cmd as administrator:
rundll32.exe powrprof.dll,SetSuspendState, 0,1,0
Thank you for the tip for setting the registry to avoid hibernation. I turned off hibernation with the Control Panel Power settings, but the "rundll32.exe powrprof.dll,SetSuspendState 0,1,0" still went to hibernation. I also changed the Properties of the Start Menu power button to Sleep.
worked fine for me .. thanks 😉
Kinda wrong. Your Sleep shortcut will ONLY do what you have your power button set as. IE: Right-click start button / Properties set "Power Button Action:" to Sleep. Or just add a shortcut like [C:WindowsSystem32rundll32.exe Powrprof.dll,SetSuspendState Sleep]
Thanks for replying, but had you actually tried this? It does not work for me.
Sorry Guys, my bad the sleep command appears to trigger hibernation. I think the work around for this is to disable hibernation in the registry.
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlPower
In the right pane of the Power key, double click/tap on HibernateEnabled, Type in 0 (zero), and click/tap on OK.
bit of a hack…I think this works. Can't see another way around it….
I have the same problem :/ Can't find a solution for it.
nothing yet?
Unfortunately the sleep mode is more of a hibernate, correct?
I've tried this and it can't wake up by just hitting the mouse or keyboard button like when using the sleep command in the orb/shut-down menu . I actually have to hit the power button and then it goes through the whole bios screen to wake up.
Do you have a function for the sleep command like on the windows shutdown menu?
Thanks,
Dave
Wow thanks !
Also in the sleep shortcut icon, you can add a keyboard shortcut like ctrl+shift+S
This makes it that much more easier than to use the mouse to double click it, and you can safely hide the batch file and shortcut somewhere else.
thanks so much bro!! genius
great! thanks.