时间:2010-07-24 06:31:40

标签: c# .net

3 个答案:

答案 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)