On windows, I can run my ruby script like this:
> ruby myscript.rb
but I want to set things up so that I can just do this instead?..
> myscript.rb
How do I do this? I know it's possible because I've recently moved from one PC that had this set up to a new PC that doesn't (yet).
Associate the ".rb" file extension with the ruby interpreter. On Windows XP, one way to do this is to select "Tools|Folder options" in the file explorer, and to setup the association in the "File types" tab.
Another way would be to enter the following on the commandline which creates this file association for you:
assoc .rb=RubyScript
ftype RubyScript=ruby.exe %1 %*