![]() |
#14 |
Участник
|
В свое время
![]() Помогите с удалением файла! Для вас это будет выглядеть примерно так X++: #WinAPI TextBuffer textBuffer = new TextBuffer(); FileName cmdName; ; ... binData.saveFile(Filename); cmdName = WinAPI::getTempPath() + "show.cmd"; textBuffer.appendText(strfmt("call \"%1\"\n", winapi::charToOEM(VendContractFile.Description))); textBuffer.appendText(strfmt("del \"%1\"\n", winapi::charToOEM(VendContractFile.Description))); textBuffer.appendText("del " + cmdName); textBuffer.toFile(cmdName); winapi::shellExecute(cmdName, "", WinAPI::getTempPath(), #ShellExeOpen, #SW_HIDE);
__________________
Axapta v.3.0 sp5 kr2 |
|