From: Alexander McMillan Date: 2013-04-20T16:22:30+09:00 Subject: Re: where do i put scripts to run them from the command line --_435ac9e7-5008-4ea7-aa40-d67414463bf0_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable If Windows OP you can put your files anywhere. Just write your file path to= the drive and folder then press enter. Then ruby and file name .rb. Or put your ruby program on the desktop and write into the command prompt c= d desktop and press enter key. You should then be on the desktop which mean= s you can then write ruby and your program file name .rb and press the ente= r key. Take a look at some basic ruby @ http://www.oldkingjames.org > Date: Fri=2C 19 Apr 2013 22:49:53 +0900 > From: lists@ruby-forum.com > Subject: where do i put scripts to run them from the command line > To: ruby-talk@ruby-lang.org >=20 > Hi=2C a stupid question. I save my scripts in a text editor but in which > directory/file do i save them to run from the command line. It just > gives me an error message when I type - ruby program.rb. >=20 > Cheers >=20 > --=20 > Posted via http://www.ruby-forum.com/. >=20 = --_435ac9e7-5008-4ea7-aa40-d67414463bf0_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
If Windows OP you can put your f= iles anywhere. Just write your file path to the drive and folder then press= enter.
Then ruby and file name .rb.
Or put your ruby program on the = desktop and write into the command prompt cd desktop and press enter key. Y= ou should then be on the desktop which means you can then write ruby and yo= ur program file name .rb and press the enter key.
Take a look at some ba= sic ruby @ http://www.oldkingjames.org

> Date:=3B Fri=2C 19 Apr 2= 013 22:=3B49:=3B53 +=3B0900
> From:=3B lists@=3Bruby-foru= m.com
> Subject:=3B where do i put scripts to run them from the comma= nd line
> To:=3B ruby-talk@=3Bruby-lang.org
>
> Hi=2C a stu= pid question. I save my scripts in a text editor but in which
> director= y/file do i save them to run from the command line. It just
> gives me a= n error message when I type - ruby program.rb.
>
> Cheers
>
>= --
> Posted via http:=3B//www.ruby-forum.com/.
>
=
= --_435ac9e7-5008-4ea7-aa40-d67414463bf0_--