From: princeofnigeria Date: 2008-05-05T21:42:03+09:00 Subject: Re: Problem using System command in ruby ------=_Part_15647_22038246.1209991323445 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Have you verified that the trial.rb file is located in teh saem directory that you are running the "system ("ruby trial.rb")" from? system("ruby trial.rb") should be run from the same directory as the trial.rb script. For instance, if you attempt to run this script from the drive root of c:\ and the trial.rb script resides in c:\mycoolrubyscripts\testscripts\ Let me know if thats teh problem, if not I can give it another stab. On Sun, May 4, 2008 at 11:29 PM, Pranjal Jain wrote: > HI All > > I am using WIndows gem "winclicker" to run windows properties. > > The code is as follows: > " > require 'watir/winClicker' > system ("D:") > system ("cd ruby") > system ("cd Temp") > system ("ruby trial.rb") > " > > I am trying to run file trial.rb via this script. but it is giving me > the error as follows : > > The system cannot find the path specified. > ruby: No such file or directory -- trial.rb(LoadError) > > PLease tell me wht is wrong in the code. > > Thanks in advance :) > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_15647_22038246.1209991323445--