Andrew Hunt:

> The convention the installer uses is that .rbw files
> are GUI programs and .rb files are console.  If the default
> handled the normal (F5) execution based on the suffix, then
> we could have an extra tools entry for "run it in a console
> anyway".
>
> Does that sound reasonable?

   Yes.

Dave Thomas:

# Is it possible to arrange for the console window not to disappear at
# the end?

   "cmd /k" should work but doesn't.

   Hacking a bit more gives:

 command.go.*.rb=cmd /k ruby $(FileNameExt)
 command.go.subsystem.*.rb=2

   which leaves the console open but at a CMD prompt. Subsystem 2 uses
ShellExecute (a high level Win32 'just run it' function) instead of
CreateProcess.

 command.go.*.rb=ruby $(FileNameExt)
 command.go.subsystem.*.rb=0

  Would be a good option except that Ruby requires a real console for stdin.
hello.rb:11:in `gets': Bad file descriptor (Errno::EBADF)

   Neil