Yaron, Here is an AppBasic Macro that will do what you want. Create a file in Codewright, paste in the code below and then save it with filename of yourfile.cwb. To use it goto app basic tab and open the file. To use it press the run button. Then goto the API command dialog and type 'ExecMyUtil' (no quotes) and hit enter. It will then prompt you for an address to ping and it will then ping that address in the shell window. Once you see it works you can modify the code to ask for the parameters you would like and then Execute the command. To use the macro from a toolbar just use the function name directly. To load the cwb file so you do not need to every time you start codewright, goto the to Tools - Appbasic Macros - Load Macros menu item and in the lower section of the dialog that appears click add and then find the cwb file you created and then just click OK, now the macro will be loaded (but will no show in the AppBasic window) and be available for your toolbar. Chris **start of code** Attribute VB_Name = "ExecMyUtil" Private Sub ExecMyUtil() Dim FunctionToExec As String Dim Param1 As String Param1 = InputBox("Please enter address to ping") If Len(Param1) = 0 Then Exit Sub End If LibPreLoad "cwdosbox" 'Make sure Shell window is in place If LibFunctionExists("DosBoxExec") Then FunctionToExec = "DosBoxExec 'ping " & Param1 & "'" LibFunctionExec "DosBoxCurrent" ' Make Shell tab Current LibFunctionExec FunctionToExec Else MsgBox "Error Loading Shell Window" End If End Sub '{{CWBASIC_LOADERINFO ' cwbAddHandler 'Private Sub ExecMyUtil()', '%F' '}}CWBASIC_LOADERINFO **end of code**