本帖最后由 爱疯 于 2011-10-25 18:31 编辑
[hide
]
Private Declare Function SHRestartSystemMB Lib "shell32" Alias "#59" _ (ByVal hOwner As Long, ByVal sExtraPrompt As String, ByVal uFlags As Long) As Long Private Const SystemChangeRestart = 4 Public Sub 重启电脑() SHRestartSystemMB 0, vbNullString, SystemChangeRestart End Sub
Public Function 重启() 重启电脑 End Function **************************************** Function 关机()'''10秒钟后关机,可以将时间设短一点 Shell "shutdown -s -t 10" End Function
[/hide]
[此贴子已经被作者于2007-7-25 10:46:09编辑过] |