leguf Posted August 3, 2010 Share Posted August 3, 2010 (edited) Finns det en motsvarande lösning för vila som det finns med programmet shutdown.exe? Hur skall i så fall kommandot se ut? För snabbavstängning är det: %windir%\system32\shutdown.exe -s -c "Slutet gott..." -t 1 Leif Tack till e-son för en bra lösning. Leif Edited August 4, 2010 by leguf Quote Link to comment Share on other sites More sharing options...
JoWa Posted August 3, 2010 Share Posted August 3, 2010 -h (Hibernate) istället för -s bör fungera. Har dock ej testat. Quote Link to comment Share on other sites More sharing options...
e-son Posted August 3, 2010 Share Posted August 3, 2010 (edited) Du kan använda den här koden... om viloläget är aktiverat (powercfg -h on)! Är viloläget inaktiverat (powercfg -h off), kan du använda samma sträng för "Standby" (Sleep). %windir%\system32\rundll32.exe PowrProf SetSuspendState Edited August 3, 2010 by e-son Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.