I just installed ruby and want to try to start learning a little bit on it. So i installed ruby in to the default directory c:\ruby
I then created a directory to store my ruby apps in c:\rubyapps
Now I want to be able to execute my apps in this directory by just typing ruby whatever.rb in that directory, but I can't. I can only do this if i am in the c:\ruby\bin directory and do ruby c:\rubyapps\whatever.rb.
So my question is how can I make is so i can exec ruby files from any folder not just that bin folder?
I then created a directory to store my ruby apps in c:\rubyapps
Now I want to be able to execute my apps in this directory by just typing ruby whatever.rb in that directory, but I can't. I can only do this if i am in the c:\ruby\bin directory and do ruby c:\rubyapps\whatever.rb.
So my question is how can I make is so i can exec ruby files from any folder not just that bin folder?