![]() |
#10 |
Участник
|
Цитата:
![]() X++: void createNewFile() { #winAPI str _path = WinAPI::getFolderPath(#CSIDL_Profile) + "\\Local Settings\\Temp\\loadRP.xls"; str _pathFind = WinAPI::getFolderPath(#CSIDL_Profile) + "\\Local Settings\\Temp\\loadRPF.xls"; ; if (WinAPI::fileExists_RU(fileName)) { info("Detaction file :"+fileName); } else { info("? file :"+_pathFind); } if (WinAPI::copyFile(fileName, _pathFind, true) == 0) { forFindPath = _pathFind; } else { error ('Îøèáêà êîïèðîâàíèÿ ôàéëà:'+fileName+";"+ _pathFind); error(Int2str(WinAPI::copyFile(fileName, _pathFind, true)) ) ; throw exception::Error; } |
|