From: Wayne Brissette Date: 2011-11-20T19:19:14+09:00 Subject: Re: How to run a program (Newbie) --Apple-Mail=_E5FE74BB-7ABC-48A9-A678-77B047714CF8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Nov 19, 2011, at 11:05 PM, Otto Dydakt wrote: > The thing that is annoying to me is that this stuff isn't hard - but = the=20 > book should tell you specifically where to create the programs=20 > directory. And it doesn't. I put it on my desktop, which seems to be = why=20 > I was getting errors all night last night... The thing to remember is the book is OS agnostic, what may work for you = on a Windows computer may not work for somebody in Mac OS X, or Linux. = Where to place files is left to your discretion. Even placing them on = the desktop shouldn't have been an issue. However, when running any = application the OS has to know the path to the file. In the case of = Windows, the desktop is a folder that is located in the following path: C:\Users\\Desktop\ If you were to run ruby, you would either have to first change to that = directory or include the path when you ran Ruby, like this:=20 ruby C:\Users\\Desktop\calc.rb that gets to be a bit unwieldy at times, so you're probably better off = doing this;=20 C:>CD C:\Users\\Desktop\ C:\Users\\Desktop> Then you can just use ruby calc.rb from the command prompt.=20 As Steve mentioned, Chris Pine's book is a great place to start.=20 Wayne --- Get your facts first, and then you can distort them as much as you = please. - Mark Twain --Apple-Mail=_E5FE74BB-7ABC-48A9-A678-77B047714CF8--