if(File.Exists(@"C:file.exe")) { Console.WriteLine("This file exists!"); } else { Console.WriteLine("This file does not exist!"); }