Loading

C# 删除目录下所有文件

System.IO.DirectoryInfo dir = new DirectoryInfo("D:\\temp");
foreach (System.IO.FileInfo file in dir.GetFiles())
	file.Delete();
posted @ 2021-09-22 16:36  Stay627  阅读(100)  评论(0编辑  收藏  举报