CSharp examples for File IO:File Command
Delete Files
using System.Threading; using System.Windows.Forms; using System.Diagnostics; using System.Xml; using System.IO.Compression; using System.IO;/*w ww.j a va 2 s.c o m*/ using System.Web.Security; using System.Web.UI.WebControls.WebParts; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using System.Web.UI; using System.Web; using System.Text; using System.Collections.Generic; using System.Configuration; using System; public class Main{ public static void DeleteFiles(string TargetFileDir) { File.Delete(TargetFileDir); } }