The following code to check for the presence of a file in the sPath directory named sFileName and any extension works in Windows 7 and does not work in Windows 10
if ( Directory::Exists( sPath_upd ) ) { if (File::Exists(sPath_upd + sFileName + ".*")) return *result = 1; else return *result = 0; } else return *result = 0;