From: "Marvin Gülker" Date: 2009-11-29T02:44:52+09:00 Subject: Re: Windows Pop Up jackster the jackle wrote: > Thanks again Marvin... > > do you know of a way not to have the DOS window open up when I run when > I double click on the shortcut to the ruby script? > > I would like to only get the pop up window when the script completes. > > Any ideas? > > thanks > > jack Change your script's file extension to ".rbw". That should cause Windows to run your script with ruybw.exe instead of ruby.exe and no console window pops up. But keep in mind that every puts and p will now cause your script to fail, because the standard output and standard error handles are invalid. I recommand you to redirect them to a file: $stdout = $stderr = File.open("MyApplication.log", "a") Marvin -- Posted via http://www.ruby-forum.com/.