Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: clock system time
Same question for system date.
If you are running an older version, here is a method that works for the date. Should also work for time by substituting the correct info.
IntControl(58, p1, 0, 0, 0) Set system time. P1 = new system time, in YmdHms format. This IntControl changes the time of the computer's system clock. Returns @TRUE on success, @FALSE on failure.
date %1
runwait("c:\Date.pif","MM/DD/YY")
The .wbt file calls the pif, which opens the minimized DOS window and passes the date parameter to the batch file. The batch changes the system date, then all files close in the reverse order that they were opened.
Article ID: W13874
Filename: How to Set System Time.txt
File Created: 2001:01:09:12:08:46
Last Updated: 2001:01:09:12:08:46