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
.bat do not apply! Instead, file permissions bits are used to denote which files are executable.