protected void DeleteTempFiles(string iFileName) { FileInfo f = new FileInfo(iFileName); DirectoryInfo dir = f.Directory; foreach (FileInfo tfile in dir.GetFiles()) { try { tfile.Delete(); } catch { } } }
protected void DeleteTempFiles(string iFileName) { FileInfo f = new FileInfo(iFileName); DirectoryInfo dir = f.Directory; foreach (FileInfo tfile in dir.GetFiles()) { try { tfile.Delete(); } catch { } } }