Hi
I would like some VBS code that will call a subroutine at 13:30 if anyone could help that will be good.
Thanks.
Z

Hi
I would like some VBS code that will call a subroutine at 13:30 if anyone could help that will be good.
Thanks.
Z

This looks like kind of what you want:
scripting vbscript For fun: a VBS alarm clock
it schedules a separate vbs file to be run at a time specified but you could probably either break up your code into multiple files or use command line arguments to specify which bit of code you want it to run when triggered.Code:SetAlarm.vbs Set ws = WScript.CreateObject("WScript.Shell") Set fso = CreateObject("Scripting.FileSystemObject") when = InputBox("When do you want to wake up?") 'needs to be in military time! e.g. 14:15 for 2:15 PM Set f = fso.OpenTextFile("C:\AlarmFlag.txt",2,true) f.Write "On" f.close ws.Run("at " & when & " ""C:\Alarm.vbs""")
FN-GM (11th June 2008)
There are currently 1 users browsing this thread. (0 members and 1 guests)