compile it to exes and running them .
But i want to make buttons in my gui and run the corresponding exe/command
what i would like to know if possible, is how to make these exe/commands to open in the same cmd window. (no in different instances of cmd)
The Unexpected Result in the title is because i made this script to open my 2 exe/commands
and made me reboot my pc...
WARNING do not run this script (it opens very fast lots of cmd windows)
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Local $Button_1, $Button_2, $msg #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 338, 221, 299, 132) $Button1 = GUICtrlCreateButton("ipconfig", 48, 128, 75, 25) $Button2 = GUICtrlCreateButton("netstat", 216, 128, 75, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### asssdd() Func asssdd() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 Run('ipco.exe') ; Will Run ipco.exe that exist in the same folder as the script Case $msg = $Button_2 Run('netstat.exe') ; Will Run netstat.exe that exist in the same folder as the script EndSelect WEnd EndFunc






