
vb6.0实现关机的简单代码:Shell "shutdown -s -t 5" '执行这代码后,5秒内关机
Shell "shutdown -a" '取消关机
Shell "shutdown -r -t 5" '执行这代码后,5秒内关机并重启
关于shutdown的参数,在运行中输入cmd,回车后在窗口中输入shutdown help
Private Declare Function SHShutDownDialog Lib "shell32" Alias "#60" (ByVal YourGuess As Long) As Long '声明 |