# IRB equivalent to windows cmd if any?

**URL:** <https://rubytalk.org/t/irb-equivalent-to-windows-cmd-if-any/67183>\
**Category:** ruby-talk\
**Created:** [1 February 2013 22:52 UTC](https://rubytalk.org/t/irb-equivalent-to-windows-cmd-if-any/67183 "2013-02-01T22:52:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [1 February 2013 22:52 UTC](https://rubytalk.org/t/irb-equivalent-to-windows-cmd-if-any/67183/1 "2013-02-01T22:52:23Z")

</div>

I am currently using ruby 1.9.3. But till now i am using windows command  
prompt to use "IRB". So is there any eqivalent "IRB" console like  
"windows cmd" for Ruby code run and test.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [1 February 2013 23:34 UTC](https://rubytalk.org/t/irb-equivalent-to-windows-cmd-if-any/67183/2 "2013-02-01T23:34:42Z")

</div>

You can run IRB direct rather than typing irb into the console... What  
are you looking for?

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![SITKI\_BAGDAT](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@SITKI\_BAGDAT](https://rubytalk.org/u/SITKI_BAGDAT)\
**Post date:** [1 February 2013 23:35 UTC](https://rubytalk.org/t/irb-equivalent-to-windows-cmd-if-any/67183/3 "2013-02-01T23:35:58Z")

</div>

you can try pry \<[http://pryrepl.org/&gt](http://pryrepl.org/&gt);

> **···**
>
> On Sat, Feb 2, 2013 at 12:52 AM, Arup Rakshit \<lists@ruby-forum.com\> wrote:
> 
> > I am currently using ruby 1.9.3. But till now i am using windows command  
> > prompt to use "IRB". So is there any eqivalent "IRB" console like  
> > "windows cmd" for Ruby code run and test.
> > 
> > --  
> > Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [2 February 2013 04:46 UTC](https://rubytalk.org/t/irb-equivalent-to-windows-cmd-if-any/67183/4 "2013-02-02T04:46:23Z")

</div>

Joel Pearson wrote in post #1094830:

> You can run IRB direct rather than typing irb into the console... What  
> are you looking for?

How does so? Every I need to write "IRB" on the console.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Tamara\_Temple1](https://avatars.discourse-cdn.com/v4/letter/t/5f9b8f/32.png) [@Tamara\_Temple1](https://rubytalk.org/u/Tamara_Temple1)\
**Post date:** [2 February 2013 05:40 UTC](https://rubytalk.org/t/irb-equivalent-to-windows-cmd-if-any/67183/5 "2013-02-02T05:40:27Z")

</div>

irb is ruby's interactive mode -- it's very much a command line  
interpreter (REPL\*) that handles ruby code. I guess I don't quite  
understand what the issue is here. What do you mean by "Every I need  
to write IRB on the console" ? I'm woefully unfamiliar with the  
windows environment, but if there's an irb.exe, you should just be  
able to click on that from Explorer and it will launch in a box, won't  
it? Or maybe from the Start menu, if that still exists?

OTOH, If you are writing your ruby code in an editor and saving it to  
a file, you should be able to just call it with ruby from a cmd  
window, like:

C:\mycode\\> ruby.exe myprogram.rb

(\*REPL : Read-Evaluate-Print Loop)

> **···**
>
> On Fri, Feb 1, 2013 at 10:46 PM, Arup Rakshit \<lists@ruby-forum.com\> wrote:
> 
> > Joel Pearson wrote in post #1094830:
> > 
> > > You can run IRB direct rather than typing irb into the console... What  
> > > are you looking for?
> > 
> > How does so? Every I need to write "IRB" on the console.
