gpt4 book ai didi

c# - 从文件夹中删除文件

转载 作者:行者123 更新时间:2023-11-30 19:34:06 25 4
gpt4 key购买 nike

如何使用带有 C# 的 ASP.Net 从文件夹中删除文件?

最佳答案

foreach (var file in Directory.GetFiles(path))
{
File.Delete(file);
}

关于c# - 从文件夹中删除文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2243158/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com