I simply want to start another program from this GUI and let the GUI continue doing its own thing. The other program will run independent of the GUI and should stay running if the GUI is closed. require ''fox16'' include Fox class ClipMainWindow < FXMainWindow def initialize(anApp) # Initialize base class first super(anApp, "TEST", :opts => DECOR_ALL, :width => 500, :height => 300) # The CCTV button button = FXButton.new(self, ''Connect To CCTV'', :opts => BUTTON_NORMAL|LAYOUT_LEFT|LAYOUT_FILL_X) Dir.chdir("\\program files\\VBrick\\StreamPlayerPlus\\") button.connect(SEL_COMMAND){`StreamPlayerPlus.exe`} #button.connect(SEL_COMMAND) {Thread.new{(`StreamPlayerPlus.exe`)}} #button.connect(SEL_COMMAND) { exec("\\program files\\VBrick\\StreamPlayerPlus\\StreamPlayerPlus.exe") } end def create super show(PLACEMENT_SCREEN) end end if __FILE__ == $0 FXApp.new("TEST", "FXRuby") do |theApp| ClipMainWindow.new(theApp) theApp.create theApp.run end end -- Posted via http://www.ruby-forum.com/.