Help regarding using winsystem command

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 :slight_smile:

just use system, not winsystem

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

Please help in resolving the error.
Thankx in advance :slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs