答案 0 :(得分:7)
答案 1 :(得分:2)
using System.Collections;
using System.Diagnostics;
using System.Management;
if (File.Exists(@"D:\New folder\Test0001.wav"))
{
GC.Collect();
GC.WaitForPendingFinalizers();
FileInfo f = new FileInfo(@"D:\New folder\Test0001.wav");
f.Delete();
}
答案 2 :(得分:1)