There is a lot of pattern matching available. Take a look at the fileset type doc. You can do something like:
<delete> <fileset basedir="ThePath/ThatContains/Your/Directories"> <include name="Image*" /> </fileset> </delete> If you want image folder more levels deep than the base you can use: <include name="**/Image*" /> BOb -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sattapattu Sent: Tuesday, April 08, 2008 9:05 AM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] Deleting multiple folders Hi, Can anyone suggest me how to delete multiple directories. I tried the delete task but i have to specify a particular directory name. How do i delete multiple directories with similar names for example Image1, Image_1, Images1. I am not sure if we can use any regular expression for this. Your suggestion will be highly appreciated. thanks in advance. Satesh -- View this message in context: http://www.nabble.com/Deleting-multiple-folders-tp16558227p16558227.html Sent from the NAnt - Users mailing list archive at Nabble.com. ------------------------------------------------------------------------ - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j avaone _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users