Author: asp.netcat | Posted on: 8/7/2008 12:16:48 AM | Views : 371

Hi Guys, 

 File.Delete Question?

      I Need to (Delete)  Dated_CompanyFile.aspx ~ which is located in many Folders & Subfolders on multiple 

directories, more than 1500 folders and subfolders contain this file... Not sure how to write code for this?? is their a way to

select multi folder/subfolder and use a wild* card procedure of some sort?

So far I have the following code, but this is not really ideal... Can someone show an example of a better

solution... Thank You... 

_____________________________


if (File.Exists(Server.MapPath("../StoreNameFolder/" + txtCategory.Text + txtFile.Text + ".aspx")));
   {
     File.Delete(Server.MapPath("../StoreNameFolder/" + txtCategory.Text + tx ...

Go to the complete details ...