vbs倒计时命令

2024-11-16 01:31:46
推荐回答(1个)
回答1:

Set WshShell = CreateObject("WScript.Shell")
Dim CloseTime,i
CloseTime = 5
For i = CloseTime To 1 Step - 1
WshShell.popup "当前时间为" & i,1,"计时",0
Wscript.Sleep 1000
Next
MsgBox "时间到!"
Set WshShell = Nothing