G
Guest
Hi
Here is the C# code
<code
string d = Server.MapPath("/"+Request.ApplicationPath+"/folder/")
if(System.IO.Directory.Exists(d)
System.IO.Directory.Delete(d)
</code
This code works fine if there is no file under folder d. How can I remove the whole folder and all files under it
Thanks
Here is the C# code
<code
string d = Server.MapPath("/"+Request.ApplicationPath+"/folder/")
if(System.IO.Directory.Exists(d)
System.IO.Directory.Delete(d)
</code
This code works fine if there is no file under folder d. How can I remove the whole folder and all files under it
Thanks