@Someone You Know said:@pjt33 said:@pinkduck said:I take it that File.Exits() is an extension method doing something better than File.Exists() can manage :) It solves  the halting problem if the argument is an .exe. Implementation is left as an exercise for the reader.   C++ implementation: (with race conditions and no error checking, and assuming the filename doesn't contain a quote mark) bool File_Exits(std::string filename) { std::ofstream tempfile("/tmp/donothing.c"); tempfile << "int main(int argc, char **argv) {return 0;}"; tempfile.close(); std::string command = "gcc /tmp/donothing.c -o \""+filename+"\""; system(command.c_str()); return true; }