You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
sleep command
About this tag
The sleep command in Windows is used in batch files and scripts to pause execution for a specified number of seconds. Users often encounter errors like 'sleep is not recognised' when the sleep.exe utility is missing or not in the system PATH. A common workaround is to place sleep.exe in the same folder as the batch file. For putting the computer into sleep mode, the command Rundll32.exe Powrprof.dll,SetSuspendState is sometimes used, but it may trigger hibernation instead. The Start menu sleep option works reliably, while command-line methods can behave differently depending on system configuration and power settings.
I have a batch file that I use to:
Create a restore point, then swap out my modified system files. I store the "Sleep.exe" file in the same folder as the batch file.
The script goes something like:
echo Please wait while a Restore Point is made.
sleep 17
Take ownership,Rename Replace, Blah...
Hi, I'm new of here.
Could anyone tell me the sleep command of Windows 7?
I have try that:
Rundll32.exe Powrprof.dll,SetSuspendState Sleep
but it doesn't work, it will become hibenate.
My powercfg
C:\>powercfg -a
此系統有以下幾種睡眠狀態: 待命 ( S1 S3 ) 休眠 混合式睡眠
此系統缺乏以下幾種睡眠狀態:
待命 (S2)...