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; 
  • And some kind of error falls out? Or just not working? - Axenow
  • Probably at a dozen no rights to access the folder. And the exception is swallowed somewhere higher. - Alexander Petrov
  • Access to the folder is, as it falls out at the point if (File :: Exists (sPath_upd + sFileName + ". *")). Unknown system error. - Natalia

0