Hi LFldnl,

Thanks for your reply. No my requirement is not that. Thats just a
sample. I have to execute a IndexBuilder command I have to get the
result and check if there is any error and print the error. Please
help me in that.

Thanks.
Venkat

On Mar 3, 8:54 pm, LFIdnl <[email protected]> wrote:
> If I understand you need to get list of files in directory. You should
> use FileUtils module to get clear 
> resulthttp://ruby-doc.org/core/classes/FileUtils.html
>
> On 3 мар, 17:01, venky <[email protected]> wrote:
>
> > Hi All,
>
> > I am using system("dir") to execute commands in Command Prompt.
>
> > I get the result(below) when I execute system("dir") command. I need
> > to store the result in an array.
> > I tried arr = system("dir") which stores true or false. Please throw
> > some light on this
>
> > Result:
> > ===================================
> >  Volume in drive E has no label.
> >  Volume Serial Number is 603F-F8C6
>
> >  Directory of E:\Temp
>
> > 02/27/2009  07:05 PM    <DIR>          .
> > 02/27/2009  07:05 PM    <DIR>          ..
> > 03/03/2009  07:11 PM                65 t.rb
> > 02/27/2009  06:22 PM             3,251 temp.rb
> > 02/27/2009  07:05 PM             1,011 temp2.rb
> >                3 File(s)          4,327 bytes
> >                2 Dir(s)  22,208,159,744 bytes free
> > =====================================
>
> > Thanks,
> > Venkat
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to