PDA

View Full Version : Time script running in background (WXP-Pro)



mike6432
06-26-2006, 08:42 AM
Hello, I want to have a script that checks to see if the current time is for example, "8:00:00 PM" and does something such as outputting a message, at that specified time.

I have written script that I thought would work. I tested it, and it does not work, any help thx. my code is below.

Dim myTime 'time variable
myTime = Time()
While myTime = "11:22:00 AM"
WScript.echo "The current time is " & myTime
WEnd

I did not receive any compilation errors, but script simply does nothing. Is this because the script must be running in the background at all times? I double clicked the file before the date indicated in the code but it did not work, thx.

Brf
06-26-2006, 09:13 AM
Set up a Scheduled Task