Seems odd that a programming finals might involve changing the system time and date. Even odder that you might want to try it in VBS, since VBS has no native capability to do this. One method (out of several) might be to shell out to the command line, ands run the date and/or time commands. eg
Code:
[COLOR=blue]strCommand = "cmd.exe /c time 23:02:00"
set objWshShell = WScript.CreateObject("WScript.Shell")
intRC = objWshShell.Run(strCommand, 0, TRUE)[/color]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.