VBScript - TechRepublic
General discussion
May 2, 2001 at 06:17 AM
wood_jared

VBScript

by wood_jared . Updated 25 years, 1 month ago

I need to run a VBScript in the backround that will check the date and time and run a bat file at a certain date and time…

this is what I have so far…

Option Explicit

dim MyDate
dim MyTime

stop
MyDate = date
MyTime = time

Do
If MyDate = ##/02/####
then goto next
else goto loop

If MyTime = 12:00a
then goto next
else goto loop

Loop

Run c:\test.bat

End Function

Any suggestions?

This discussion is locked

All Comments