[原创]定时运行程序
我的第一个VB小程序 搞了一个多小时.给大家分享一下!
[此贴子已经被作者于2006-11-15 16:17:46编辑过]
[此贴子已经被作者于2006-11-15 16:17:46编辑过]
Private Sub browse_Click() browseDialog.DialogTitle = "选择路径" browseDialog.ShowOpen End Sub Private Sub clock_off_Click() hour = "* *" minute = "* *" second = "* *" on_off.Enabled = False clock_on.Value = False End Sub Private Sub clock_on_Click() hour = "22" minute = "58" second = "00" on_off.Enabled = True clock_off.Value = False End Sub Private Sub Form_Load() on_off.Interval = 1000 current_time = CStr(Time) browseDialog.FileName = "C:\WINDOWS\system32\cmd.exe" End Sub Private Sub on_off_Timer() Dim i As Single current_time = CStr(Time) If Mid(current_time, 1, 8) = hour & ":" & minute & ":" & second Then i = Shell(browseDialog.FileName, 1) End If End Sub楼主:能修改下不? 当前时间 过 5分钟后, 自动运行 一个程序 (例如 计算机 记事本 网页等)