This Hibernates Windows after set amount of time.
time to wait before shutting down (in seconds), added to m and h; passed to
time to wait before shutting down (in minutes), added to s and h; passed to
time to wait before shutting down (in hours), added to s and m; passed to
default is TRUE. This runs "powercfg -hibernate on" in order to turn hibernate on, in cases where it was off.
The status code of
http://superuser.com/questions/42124/how-can-i-put-the-computer-to-sleep-from-command-prompt-run-menu , http://www.howtogeek.com/howto/windows-vista/quick-tip-create-shutdown-restart-lock-icons-in-windows-vista/
1 2 3 4 5 6 7
## Not run: ## when your code is extremely time-consuming, # you may need this function to run at the # end of the simulation. os.hibernate() ## End(Not run)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.