Hi, I guess ill start with my code snippet... This Runs a batch file which works fine $startscan = RunWait("startscan.bat") I want to display the cmd output into an edit box I have comeup with this but it is obviously completely wrong as it doesnt work $getcommandinfo = StdOutRead($startscan) $editbox = GUICtrlCreateEdit("", 24, 56, 377, 185) GUICtrlSetFont(-1, 10, 400, 0, "Arial") GUICtrlSetData($editbox, $getcommandinfo) The script runs fine, the batch file runs and finishes su