I am having a problem to figure out how to send a command when i click a button to an embeded CMD in my Gui. Does anybody has a helpful advice ? This is the script.....but i can not figure how to make it work.. I use in this script a piece of BREWMANNH's code #include #include Opt("GUIOnEventMode", 1) Global $Init_Dir = "C:" $Main_GUI = GUICreate("Embedded CMD", 660, 311, 10, 10,BitOr($Gui_SS_DEFAULT_GUI,$WS_CLIPCHILDREN)) $button = GUICtrlCreateButton(" IPConfig ", 200, 200) GUISet