[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Help regarding using winsystem command

Pranjal Jain

4/30/2008 7:36:00 AM



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 :)
--
Posted via http://www.ruby-....

1 Answer

Roger Pack

4/30/2008 2:56:00 PM

0

just use system, not winsystem

> require 'watir/winClicker'
> winsystem ("c: cd ruby")
> #winsystem ()
>
> Please help in resolving the error.
> Thankx in advance :)
--
Posted via http://www.ruby-....