|
Hi everybody,
our company will migrate during this year to Windows 7. Now I'm testing my scripts regarding Windows 7 compatibility. During the stating of a XP machine, I set the correct timezone via the following function:
; --------------------------------------------------------------------------------------------------- ; Set date and time and timezone ; --------------------------------------------------------------------------------------------------- Function SetDateAndTime() $Ret = ShowStatus("Setting date, time and timezone...") $Command = "RUNDLL32.EXE SHELL32.DLL,Control_RunDLL TIMEDATE.CPL,,/Z (GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna" Shell $command If @error = 0 $SetDateAndTime = "Successfully set date and time" Else $SetDateAndTime = "Error setting correct date and time" EndIf EndFunction
Now this seems no longer working for Windows 7. I searched the board for a solution but didn't find anything... I'm sure somebody can give me a push into the right direction...
Many thanks
Samuel
|