Return 发表于 2022-8-8 13:50:39

vbs关机小代码


Option Explicit

On Error Resume Next

Dim answer

Dim WshShell

set WshShell = CreateObject("wscript.Shell")

WshShell.Run "Shutdown /f /s /t 10 /c 输入'我是傻逼',否则10秒后关机~",0

Do While answer<>"我是傻逼"

answer=InputBox("输入'我是傻逼',否则10秒后关机~","哈哈哈",,7000,8000)

Loop

WshShell.Run "Shutdown /a",0

MsgBox "哈哈哈,傻逼",,"哈哈哈"


页: [1]
查看完整版本: vbs关机小代码