目录下是否存在某个文件我想在一个文件夹下,看看是否存在一个EXE文件 不知道怎么实现[解决办法]System.IO.File.Exists(path)[解决办法]using System.IO; using System.Windows.Forms; if(File.Exists(filename)) { MessageBox.Show( "the file exists "); }