powered by
This locks Windows after set amount of time.
os.lock(s = 0, m = 0, h = 0)
time to wait before shutting down (in seconds), added to m and h; passed to Sys.sleep
Sys.sleep
time to wait before shutting down (in minutes), added to s and h; passed to Sys.sleep
time to wait before shutting down (in hours), added to s and m; passed to Sys.sleep
The status code of shell.
shell
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/
system,shell, Sys.sleep, is.windows, os.shutdown, os.sleep, os.hibernate, os.lock, os.restart
system
is.windows
os.shutdown
os.sleep
os.hibernate
os.lock
os.restart
# NOT RUN { ## when your code is extremely time-consuming, # you may need this function to run at the # end of the simulation. os.lock() # }
Run the code above in your browser using DataLab