我正在编写一个简单的文件夹观察程序,我想忽略在进行扫描时复制到文件夹中的 temp.temp 文件,因此程序将检测到文件夹中放置的任何内容并忽略 temp.temp 文件。目前我已经得到了检测 IMG 文件的程序来解决这个问题。
if(e.FullPath.Contains("IMG"))
{
MessageBox.Show("You have a Collection Form: " + e.Name);
Process.Start("explorer.exe", e.FullPath);
}