rubyw confusion

A

Alex DeCaria

I know that using rubyw.exe will run my Ruby/TK applications without
giving me a command line, but I don't know how to set this up in
Windows. For instance, right now if I double-click my ruby programs
from Windows Explorer I get a command window. How do I set windows up
so that it runs rubyw.exe for that application instead of ruby.exe?

I do most of my stuff in Linux, and Windows is not my strong suit.
 
J

Jan Svitok

I know that using rubyw.exe will run my Ruby/TK applications without
giving me a command line, but I don't know how to set this up in
Windows. For instance, right now if I double-click my ruby programs
from Windows Explorer I get a command window. How do I set windows up
so that it runs rubyw.exe for that application instead of ruby.exe?

I do most of my stuff in Linux, and Windows is not my strong suit.

Open any explorer window (e.g. my computer), Tools | Folder Options |
File Types, find .rb, Advanced, choose open action, Edit, replace ruby
with rubyw.

Or, use .rbw extension.
 
T

Tim Becker

Windows is not my strong suit.

Not mine either... So this might not work.

Basically change the application to open ruby files to be rubyw.exe
and not ruby.exe. (Right click, Properties, Open with...). This should
cause all your ruby scripts to be opened with rubyw though, which may
not be intended.
OTOH if you need a console, you can always explicitly open one and
start ruby from there, or create different file extensions for rubyw
and ruby files. You might even be able to set default applications
per folder or somesuch nonsense.
-tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,236
Messages
2,571,185
Members
47,820
Latest member
HortenseKo

Latest Threads

Top