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?..
None of the command line solutions worked for me on Windows 10. I've previously used the Windows GUI to open .rb files using Notepad++. When I run
script.rb
in the command line, it just opens Notepad++ with the .rb file (even after the command line fixes).
What solved the issue for me was