Supi, jetzt hab ich es hinbekommen.
Beiträge von stambo
-
-
Habe es mit Win7 32/64, Win10/64, und WinServer2008R2 getestet,
trotzdem wird mir immer "1970/01/01 00:00:00" angezeigt und nicht das eigentliche Installationsdatum des OS. -
C
Alles anzeigen#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <Date.au3> $Form1 = GUICreate("test", 500, 350, -1, -1) $Label2_instdate = GUICtrlCreateLabel((_DateAdd("s",RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "InstallDate"),"1970/01/01 00:00:00")), 180, 220, 180, 17) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd -