Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想删除位于指定路径的子文件夹中的所有子文件夹和文件。
我是 C# 编码的新手,请帮助我。
假设我有路径:“C:\Files\aaa-426962\15-02-2013\index.html”
如果我指定“C:\Files\aaa-426962”,则应删除位于“C:\Files\aaa-426962”下的所有子文件夹和文件。
提前致谢。
global::System.IO.Directory.Delete(@"C:\Files\aaa-426962", true);