<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by CBoisseau: I am trying to automate the change of the date of my computer. <HR></BLOCKQUOTE>
To change the date of the computer see the following from the on-line help:
Sets the PC date.
ret = SetDate( year , month , day )
This function uses year, month, and day values to set the current PC date to the values specified.
The function returns 1 if the date was set correctly, or it returns 0 if an invalid date was passed.
; Set the date to the 1st of January 2000
ret = SetDate( 2000 , 1 , 1 )
; Set the date to the next year, current date
ret = SetDate( year() + 1 , month() , day )
; Attempts to set an invalid date
ret = SetDate( 1999 , 2 , 31 )
if ret = 0
msgbox( "Error" , "Invalid date supplied to SetDate()" )