From the home directory
which ruby.exe &
return "no such file or directory"
However, I'm able to execute .rb programs in rubymine.
Try this instead:
If you would also like to be told when certain commands are shell builtins, you can use this:
In Unix like operating systems the filename suffixes which traditionally denote executable files on DOS and Windows such as