Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

I have a Windows and I'm using Ruby 1.9.1-p429, and it won't allow me to view my test.rb file on cmd when i type cd. I'll go through step-by-step of what I did.

I saved a test .rb file on Sublime to my desktop. I open cmd and type "cd", expecting it to list the test.rb file, as the tutorial said it would. Nothing shows up.

I go to the files on my desktop and open it. It says I need a program to open it with. I try opening it with Ruby Interactive. Nothing. The same thing happens when i try to open it with cmd. Now all the save files try to open it with cmd.

Any suggestions?

share|improve this question

migrated from Apr 16 '13 at 8:06

This question came from our site for professional and enthusiast programmers.

It really sounds like you don't understand how to use your operating system; These are basic skills you are talking about. cd means "change directory", and only is used to change from one directory and make another the default directory. dir is the command used to list files. – TTM Apr 16 '13 at 7:30
cd doesn't list files - dir does – Frederick Cheung Apr 16 '13 at 7:31
Why are you using Ruby 1.9.1? That version is woefully out of date and wasn't entirely production ready. 1.9.2 or better is a lot better. – tadman Apr 16 '13 at 8:15

Ruby files should be opened with ruby.exe, wherever that is on your system.

share|improve this answer
I try to open a file using Ruby.exe, and the screen opens for a split second and then shuts off. I am aware that this version of Ruby is outdated by I was instructed to use it by through instructions for App Academy. – Ian Steffy Apr 16 '13 at 9:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .