New
#1
Cmd sleep command but with timer
If you could help i found :\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState Sleep but i need -t 180 secs which doesnt work with this and i dont want to use third party programs..
tyvm
If you could help i found :\Windows\System32\rundll32.exe powrprof.dll,SetSuspendState Sleep but i need -t 180 secs which doesnt work with this and i dont want to use third party programs..
tyvm
In CMD you can use "timeout" or in PowerShell you can use "Start-Sleep" to start a 180s timer. Just create a script with the timeout command followed by the SetSuspendSleep command.
Or if you want it in one line you can do
Code:timeout /t 180&&rundll32.exe powrprof.dll,SetSuspendState Sleep
Sorry, forgot to mention that "&&" only works in CMD. You use ";" to concatenate commands in PowerShell.