日期:2014-05-19  浏览次数:20624 次

目录下是否存在某个文件
我想在一个文件夹下,看看是否存在一个EXE文件
不知道怎么实现

------解决方案--------------------
System.IO.File.Exists(path)
------解决方案--------------------
using System.IO;
using System.Windows.Forms;
if(File.Exists(filename))
{
MessageBox.Show( "the file exists ");
}