Hi,

I am new to kix scripting and have been looking at the various codes on both here and on kixforms.

To run the scripts I drag them over the Wkix32.exe using windows explorer.

I have copied some code from the examples and as a standalone script it works. The ping command runs and the dos box closes.
 Code:
shell "%comspec% /e:1024 /c ping 192.168.2.1" 


I then went on to create a very basic form with a single button and a picture, the button then calls the above code inside a function.
 Code:
 Function Button

shell "%comspec% /e:1024 /c ping 192.168.2.1"
EndFunction


When the button is pressed it runs the code, but the Dos window stays open and unless I close the form I cant get it to close.

I cant seem to find a way that once i get the 3 responses from the Ping or the final results are displayed that I can get the dos box to close.

Any help is much appreciated.

TIA