Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== file_operation ====== Method of [[:scripting:api:application:start|IApplication]] ===== Description ===== File operation helpers. ===== Parameters ===== * [[:scripting:api:file-operation|eFileOperation]] **operation** * [[scripting:api:data-type:BSTR|BSTR]] **strFrom** * [[scripting:api:data-type:BSTR|BSTR]] **strTo** = %%""%% (optional) * [[scripting:api:data-type:UINT|UINT]] **nFlags** = 0 (optional) * [[scripting:api:data-type:VARIANT_BOOL|VARIANT_BOOL]] **bFailIfExist** = VARIANT_FALSE (optional) ==== Return Value ==== * [[scripting:api:data-type:VARIANT_BOOL|VARIANT_BOOL]] **pbResult** ===== Syntax ===== ==== JavaScript ==== <code javascript> var pbResult = Application.file_operation(operation, strFrom, strTo, nFlags, bFailIfExist); </code>==== Visual Basic Script ==== <code vb> pbResult = Application.file_operation operation, strFrom, strTo, nFlags, bFailIfExist </code>==== C++ ==== <code cpp> VARIANT_BOOL bResult; HRESULT hr = Application.file_operation(operation, strFrom, strTo, nFlags, bFailIfExist, &bResult); </code>===== See Also ===== [[:scripting:api:application:start|IApplication]] ~~NOTOC~~