New
#11
thanks GODisaRefuge4Us
thanks GODisaRefuge4Us
For those who would like to be able to still use hibernate on their computer (I almost never "Shut Down" my laptop), here is another option along the same lines. Create a .bat file (I call it sleep.bat) with the following:
For the shortcut command I use:Code:@echo off powercfg -hibernate off C:\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState powercfg -hibernate on
cmd.exe /c D:\Data\sleep.bat
Just in case anyone wants to use hybrid sleep (hibernation and sleep together, copies to RAM and disk just in case of power loss):
I haven't been able to find a successful command from Windows 10. The solutions in this thread use sleep or hibernation, but not both at the same time (hybrid sleep).
However, I found that using NirCmd uses hybrid sleep with the standby command.
Extract NirCmd to a folder
Create . bat with the following line - X:\FOLDER\nircmd.exe standby
Execute .bat (does not require elevated privilege/administrator)
You can confirm the hybrid sleep state by generating a system power report with powercfg:
Open command prompt as administrator
Enter: powercfg /systempowerreport
Open the file at the location indicated. Usually "C:\Windows\system32\sleepstudy-report.html"