Open Command Prompt
Open Files
Go to where your file is located
Click on the file adress bar
Press CTRL + C
In command prompy, type:
cd
and then, press CTRL + V, press enter after that
Type:
ruby '.
type file name
.rb'
Press enter to run it
Example:
Location = C:UsersAdminOther Stuff - Local DriveProjects
Ruby program location = C:UsersAdminOther Stuff - Local DriveProjectsFirst Ruby Program.rb
>>> cd /
>>> cd C:UsersAdminOther Stuff - Local DriveProjects
>>> ruby '.First ruby program.rb'