Basic/Dumb/Beginners Question

Hi, this is a really dumb question, but I’m not sure what I’m doing
here. Any advice to help this noobian out would be great.

I’ve started learning Ruby from this blog -
https://pine.fm/LearnToProgram/chap_01.html

and I have a program called calc.rb to run located here
C:\Users\nonplussed\Desktop\Ruby

I’ve tried to run it on command prompt and ruby command prompt but it
doesn’t seem to work when I type anything in?

C:\Users\nonplussed>\Desktop\Ruby calc.rb
C:\Users\nonplussed>C:\Users\nonplussed\Desktop\Ruby calc.rb

You should invoke ruby command itself. Something like this:

cd C:\Users\nonplussed\Desktop\Ruby
ruby calc.rb

Nicky Curzon wrote in post #1185101:

I’ve tried to run it on command prompt and ruby command prompt but it
doesn’t seem to work when I type anything in?

C:\Users\nonplussed>\Desktop\Ruby calc.rb
C:\Users\nonplussed>C:\Users\nonplussed\Desktop\Ruby calc.rb

Ruby - in the same way as most other programming languages - can be
invoked on Windows in one of three ways:

(1) You specify the full path to your Ruby executable

(2) You put the path to your Ruby executable into your PATH

(3) You make an association of file extensions .rb to the Ruby
executable.

The last option, (3), is pretty Windows specific and it seems that many
people like it. I personally prefer (2). If you have more than one Ruby
installed, you should go for (1)