#include #include #include #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 615, 437, 192, 124) $Group1 = GUICtrlCreateGroup("Test list", 136, 88, 345, 97) $Radio1 = GUICtrlCreateRadio("Run CMD 01", 160, 112, 233, 17) $Radio2 = GUICtrlCreateRadio("Run CMD 02", 160, 144, 273, 17) GUICtrlCreateGroup("", -99, -99, 1, 1) GUICtrlSetState(-1, $GUI_CHECKED) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Radio1 MsgBox(0,0,"Run CMD 01",0) Case $Radio2 MsgBox(0,0,"Run CMD 02",0) $CMD = "wmic product get name,InstallDate,version > C:\Public\Temp\InstallSoftware.txt" RunWait(@ComSpec & " /c " & $CMD,"",@SW_HIDE) EndSwitch WEnd