Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

At first time I installed Ruby using RubyInstaller for Windows. And in the process of installation there was a checkbox whether I want to have .rb files to be Ruby files. If I agree all the .rb files have Ruby icon:

enter image description here

But I had to uninstall Ruby and installed it again using RailsInstaller. And after that all .rb files do not have Ruby icon:

enter image description here

How can I associate Ruby icon with .rb files?


If you also need to associate .rb files with Ruby interpreter to be able to run Ruby scripts with double-click you can do this (from here):

$ assoc .rb=RubyScript

$ ftype RubyScript="c:\ruby\bin\ruby.exe" "%1" %*
RubyScript="c:\ruby\bin\ruby.exe" "%1" %* 
share|improve this question
You should remove your answer from you question and submit it as answer. – martineau Feb 24 '13 at 14:34
@martineau, it is not the answer, unfortunately. It only associates .rb files with Ruby interpreter - I can double-click a file and it runs. But it does not create the icon on files. – Green Feb 24 '13 at 15:46
Sorry, I misunderstood. – martineau Feb 24 '13 at 16:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.