@BUTTON IF BUTTON()==16 GOTO @APPS GOTO @BUTTON @APPS EXEC "YOURPROGRAMNAME" An example I hope it helped