Кстати, про fileExists - на 64-х битном сервере WinApi::fileExists_RU
заменил на
X++:
static public boolean fileExists_CLR(FilenameOpen _fileName)
{
InteropPermission perm = new InteropPermission(InteropKind::ClrInterop);
boolean ret;
;
perm.assert();
ret = ClrInterop::getAnyTypeForObject(System.IO.File::Exists(_filename));
return ret;
}
ибо были грабли с ним