# Windows shell commands

**URL:** <https://www.ruby-forum.com/t/windows-shell-commands/69183>\
**Category:** Ruby\
**Created:** [February 16, 2006, 1:01pm UTC](https://www.ruby-forum.com/t/windows-shell-commands/69183 "2006-02-16T13:01:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joergd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/51bf81/32.png) [@joergd](https://www.ruby-forum.com/u/joergd)\
**Post date:** [February 16, 2006, 1:01pm UTC](https://www.ruby-forum.com/t/windows-shell-commands/69183/1 "2006-02-16T13:01:25Z")

</div>

Hi,

Is there a way to run windwos shell commands from Ruby?

Thanks  
Joerg

---

<div class="post-metadata">

**Author:** ![joergd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/51bf81/32.png) [@joergd](https://www.ruby-forum.com/u/joergd)\
**Post date:** [February 16, 2006, 1:32pm UTC](https://www.ruby-forum.com/t/windows-shell-commands/69183/2 "2006-02-16T13:32:49Z")

</div>

> Hi,
> 
> Is there a way to run windwos shell commands from Ruby?
> 
> Thanks  
> Joerg

`dir`  
OR  
system(‘dir’)  
OR  
exec(‘dir’)  
OR  
[http://raa.ruby-lang.org/project/win32\_console/](http://raa.ruby-lang.org/project/win32_console/)

Alexis.

---

<div class="post-metadata">

**Author:** ![joergd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/51bf81/32.png) [@joergd](https://www.ruby-forum.com/u/joergd)\
**Post date:** [February 17, 2006, 7:31am UTC](https://www.ruby-forum.com/t/windows-shell-commands/69183/3 "2006-02-17T07:31:10Z")

</div>

“Joerg D.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote in message  
news:removed\_email\_address@domain.invalid…

> 

This link  
[http://www.jamesbritt.com/articles/RubyAndVbaForWebDictionarySearches.html](http://www.jamesbritt.com/articles/RubyAndVbaForWebDictionarySearches.html)

may be of interest.

Mu.
