VB高手请进!!

来源:百度知道 编辑:UC知道 时间:2024/09/28 17:44:52
我想利用VB编一个程序..
让它在我设定的时间里自动运行某个程序...
请各位高手多多指教!!
比如我想在 06:00:00 的时间运行.

用timer控件啊 ~
把a=time
if (你要运行的时间,如:b=10:12:13)b=a then shell ""

办法很多~自己想把~这只是思路~

一点代码:
timer的过程
a=time
b=06:00:00
if b=a then shell "你要运行程序的路径"

timer 的时间间隔改为1000

很简单.加一个Timer控件.然后在它的事件里编写代码即可.