# I have a problem with ruby

**URL:** <https://www.ruby-forum.com/t/i-have-a-problem-with-ruby/76688>\
**Category:** Ruby\
**Created:** [November 20, 2006, 3:00pm UTC](https://www.ruby-forum.com/t/i-have-a-problem-with-ruby/76688 "2006-11-20T15:00:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/85e7bf/32.png) [@abood](https://www.ruby-forum.com/u/abood)\
**Post date:** [November 20, 2006, 3:00pm UTC](https://www.ruby-forum.com/t/i-have-a-problem-with-ruby/76688/1 "2006-11-20T15:00:09Z")

</div>

Hi  
i’m beginner in ruby  
and i have a problem ,i hope that you help me to fix it  
the problem is that when i write any program and save it as a .rb file  
when i want to open it (the program) it open for a second then the  
window close without doing any thing

(i use windows xp)

so please help me to fix this problem

---

<div class="post-metadata">

**Author:** ![abood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/85e7bf/32.png) [@abood](https://www.ruby-forum.com/u/abood)\
**Post date:** [November 20, 2006, 3:17pm UTC](https://www.ruby-forum.com/t/i-have-a-problem-with-ruby/76688/2 "2006-11-20T15:17:53Z")

</div>

Abood Abood wrote:

> 

Hey

Are you running it from the console?  
Try

Start -\> run -\> enter “cmd”

cd to your ruby program  
eg. C:\ cd\my\_programming\_folder  
and run it with:  
C:\my\_programming\_folder\ _ruby some\_program.rb_

Hope this helps  
Gustav P.  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![abood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/85e7bf/32.png) [@abood](https://www.ruby-forum.com/u/abood)\
**Post date:** [November 20, 2006, 3:21pm UTC](https://www.ruby-forum.com/t/i-have-a-problem-with-ruby/76688/3 "2006-11-20T15:21:53Z")

</div>

thank you very much  
it’s work so good

---

<div class="post-metadata">

**Author:** ![abood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/85e7bf/32.png) [@abood](https://www.ruby-forum.com/u/abood)\
**Post date:** [November 20, 2006, 3:27pm UTC](https://www.ruby-forum.com/t/i-have-a-problem-with-ruby/76688/4 "2006-11-20T15:27:56Z")

</div>

On 20.11.2006 15:00, Abood Abood wrote:

> 

Your Windows is probably configured to associate “\*.rb” with “execute  
via Ruby”. You can fix that via Explorer, Tools, Folder Options.

```
robert
```
