# Help regarding using winsystem command

**URL:** <https://www.ruby-forum.com/t/help-regarding-using-winsystem-command/136273>\
**Category:** Ruby\
**Created:** [April 30, 2008, 9:35am UTC](https://www.ruby-forum.com/t/help-regarding-using-winsystem-command/136273 "2008-04-30T09:35:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranjal\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Post date:** [April 30, 2008, 9:35am UTC](https://www.ruby-forum.com/t/help-regarding-using-winsystem-command/136273/1 "2008-04-30T09:35:16Z")

</div>

HI all  
I am trying to invoke the system commands by means of Ruby.  
I am using the ‘winsystem’ command for it, but unfortunately it is  
giving me the error  
as follows :

example.rb:2: undefined method ‘winsystem’ for  
main:Object(NoMethodError)

for the following code :

require ‘watir/winClicker’  
winsystem (“c: cd ruby”)  
#winsystem ()

Please help in resolving the error.  
Thankx in advance 🙂

---

<div class="post-metadata">

**Author:** ![pranjal\_jain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ac91a4/32.png) [@pranjal\_jain](https://www.ruby-forum.com/u/pranjal_jain)\
**Post date:** [April 30, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/help-regarding-using-winsystem-command/136273/2 "2008-04-30T16:56:20Z")

</div>

just use system, not winsystem

> require ‘watir/winClicker’  
> winsystem (“c: cd ruby”)  
> #winsystem ()
> 
> Please help in resolving the error.  
> Thankx in advance 🙂
