Phillip Gawlowski
9/4/2007 8:51:00 PM
> -----Original Message-----
> From: yahdoco [mailto:yahdoco@yahoo.com]
> Sent: Tuesday, September 04, 2007 10:15 PM
> To: ruby-talk ML
> Subject: Re: running ruby
>
> I sill have the same two problems:
> (1)The hello world screen disappears quickly.
This is your Command Prompt. You can open it via Run -> "cmd" in the box, or
via your Programs in Accessories (IIRC, it is there. It should have an icon
reading MS-DOS). Then, you'll have a command prompt in black with grayish
text, eagerly awaiting to do your bidding. Tell it to go to your desktop, by
typing in "cd c:\documents and settings\<put your user name here>\Desktop".
That should get you where you have placed your hello.rb file.
Once you are at the place you saved your hello.rb, just type "ruby
hello.rb", and you'll see the output of your command prompt.
If you cannot find your hello.rb, just type "irb" at the command prompt, and
you enter the interactive Ruby shell. You can experiment with Ruby there,
too.
Please note: I'm not sure about the place of your Desktop, since it has been
ages since I've worked with Windows 98.
--
Phillip Gawlowski