7,763
社区成员
发帖
与我相关
我的任务
分享
'a.exe中
Private Sub Form_Unload(Cancel As Integer)
shell "b.exe", vbHide
End Sub
'b.exe中
Private Sub Form_Load()
dim i, t
t=time
do while second(time-t)<10
loop
shell "a.exe",vbnormal
End Sub
Private Sub Command1_Click()
Dim d As Date
' 结束进程 30秒后重启
d = DateAdd("s", 30, Now)
Shell "at " & Format(d, "hh:mm") & " /interactive " & App.Path & "\" & App.EXEName & ".exe", vbHide
End
End Sub