Thanks.

Though bit struggled initially but finally able to :)

Arihan

On Tue, Feb 2, 2010 at 3:47 PM, Charley Baker <charley.ba...@gmail.com>wrote:

> Check out the documentation for FileUtils#rm:
> http://ruby-doc.org/core/classes/FileUtils.html#M004332
>
> You can glob files and pass them to rm.
>
> -c
>
> On Tue, Feb 2, 2010 at 8:32 AM, arihan sinha 
> <arihan.si...@googlemail.com>wrote:
>
>>
>>
>> Hi All,
>>
>> I am trying to delete few files with specific extension ( say x.ppt,
>> y.ppt, z.ppt) or in the format of say J_x.ppt, J_y.ppt, J_z.ppt etc...
>>
>> for a single file deletion , I can use File.delete("C:\Documents and
>> Settings\sinhaa\My Documents\x.ppt") which works fine but if i need to
>> delete all those three files in a single go , then what i need to do. any
>> thoughts? any reg expression kind of things I can use?
>>
>> Thanks
>> Arihan
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Watir General" group.
>> To post to this group, send email to watir-general@googlegroups.com
>> Before posting, please read the following guidelines:
>> http://wiki.openqa.org/display/WTR/Support
>> To unsubscribe from this group, send email to
>> watir-general-unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/watir-general
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Watir General" group.
> To post to this group, send email to watir-general@googlegroups.com
> Before posting, please read the following guidelines:
> http://wiki.openqa.org/display/WTR/Support
> To unsubscribe from this group, send email to
> watir-general-unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/watir-general
>

-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general

Reply via email to