string filePath = Server.MapPath("~/ImportBaseInfo/");
string[] filePaths = Directory.GetFiles(filePath);
foreach (string filepath in filePaths)
{ File.Delete(filepath); }
灵感来自大佬:https://www.cnblogs.com/hongkun/p/7993619.html
2024-03-05 19:07:55
string filePath = Server.MapPath("~/ImportBaseInfo/");
string[] filePaths = Directory.GetFiles(filePath);
foreach (string filepath in filePaths)
{ File.Delete(filepath); }
灵感来自大佬:https://www.cnblogs.com/hongkun/p/7993619.html
下一篇:文件下载