Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note: While result will contain a return value the safest method to ensure proper processing occurred, use Get_Status() to check for errors in copying the files.

See also

Utility("COPYFILE")

Example

Code Block
declare function CopyOSFile, Get_Status
declare subroutine FsMsg
 
srcfile = 'c:\temp\demo_cust.xml'
destfile = 'c:\temp\copyosfile.xml'
overwriteflag = 0
 
result = CopyOSFile(srcfile, destfile, overwriteflag)
status = Get_Status(errCodes)
if status then
   FsMsg(errCodes)
end