[wtr-general] Delete the bulk files with specific extension or specific format.

2010-02-02 Thread arihan sinha
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

Re: [wtr-general] Delete the bulk files with specific extension or specific format.

2010-02-02 Thread Charley Baker
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.comwrote: Hi All, I am trying to delete few files with specific extension (

Re: [wtr-general] Delete the bulk files with specific extension or specific format.

2010-02-02 Thread arihan sinha
Thanks. Though bit struggled initially but finally able to :) Arihan On Tue, Feb 2, 2010 at 3:47 PM, Charley Baker charley.ba...@gmail.comwrote: 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.