Steve,

If you're using Scite as your editor (if you're not, it's bundled with
the Windows installer and should be on your Ruby menu somewhere) then
you might want to try this. Change the extension on your source file
from "rb" to "rbw". If you now run your script (F5 is the keyboard
shortcut) then the output is captured in the Scite output window. Plain
"rb" files will still open a quickly-disappearing Command window, which
is, as you've already discovered, tedious.

HTH,

Mike