guides:programming:programmers_reference_manual:copyfile_service

COPYFILE service

Copies an operating system file to another operating system file.

Note: This is a Windows only function.

result = UTILITY("COPYFILE",srcfile, destfile)

The COPYFILE service has the following parameters.

ParameterDescription
srcfileSpecifies an operating system file or list of files. The file name includes the operating system drive and path.
destfileSpecifies the name of the destination table.
resultA boolean value. If true then the copy was successful otherwise an error occurred.

If destfile exists and overwriteflag = 1, the file is copied and result = 1. The nonzero result does not indicate an error, but rather that destfile was overwritten.

CopyOSFile()

BEEP Service

DESTROY Service

REMOVEDIR Service

CHOOSECOLOR Service

FLUSH Service

RENAMEDIR Service

CHOOSEDIR Service

GET_EVENT Service

RENAMEFILE Service

CHOOSEFILE Service

GETLOGICALDRIVES Service

RUNHELP Service

CHOOSEFONT Service

MAKEDIR Service

RUNWIN Service

COPYFILE Service

OBJECTID Service

TEXTRECT Service

CREATE Service

OBJECTLIST Service

WINCOUNT Service

CURSOR Service

PRINTSETUP Service

Utility function

/* copy C:\AUTOEXEC.BAT to C:\AUTOEXEC.SAV */

declare function Utility
retval = Utility("COPYFILE" , "C:\AUTOEXEC.BAT", "C:\AUTOEXEC.SAV")
  • guides/programming/programmers_reference_manual/copyfile_service.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1