Advertisement
ASP_Volume3 Miscellaneous #61945

___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

Yapay Zeka Özeti: 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.

Kaynak Kod
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"

Orijinal Yorumlar (3)
Wayback Machine'den kurtarıldı