Deleting a directory using ASP.Net
This program will delete a directory from your system’s hard disk. Include the following namespace to write the program. It will delete all files and subdirectory also.
- Within if condition it is checking wheather directory is exhists or not.
- Within try block it will delete the directory
protected void Page_Load(object sender, EventArgs e)
catch (System.IO.IOException ex)
Post a Comment