Advertisement
4_2005-2006 Miscellaneous #167242

___OneLine Shutdown.

Not sure if this has been posted before. Allows you to shutdown quickly using the shell command. This also enables you to restart as well.

AI

Tóm tắt bởi AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Mã nguồn
original-source
Shell "shutdown -s -t 60"
'Shell will execute the command "shutdown -s -t 60"
'the shutdown -s -t 60 means:
' shutdown -s(shutdown) -t(time) 60(in this many seconds)
'So this will shutdown your PC in 60 seconds.
'Shell "shutdown -s -t 12" will shutdown your PC 'in 12 seconds.
'Shell "shutdown -r -t 60" 
'This will restart the pc in 60 seconds.
Hope this helps for those who just can't figure it out.
'[edit]
'When you just want to shutdown without any windows popping up, type:
' Shell "shutdown -s -t 00"
' same thing for restart
'canceling a shutdown is easy as well, just type:
' Shell "shutdown -a"

Bình luận gốc (3)
Được khôi phục từ Wayback Machine