COPYFILE service
Description
Copies an operating system file to another operating system file.
Note: This is a Windows only function.
Syntax
result = UTILITY("COPYFILE",srcfile, destfile)
Parameters
The COPYFILE service has the following parameters.
Parameter | Description | |
---|---|---|
srcfile | Specifies an operating system file or list of files. The file name includes the operating system drive and path. | |
destfile | Specifies the name of the destination table. | |
result | A boolean value. If true then the copy was successful otherwise an error occurred. |
Note
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.
See Also
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
Example
/* copy C:\AUTOEXEC.BAT to C:\AUTOEXEC.SAV */ declare function Utility retval = Utility("COPYFILE" , "C:\AUTOEXEC.BAT", "C:\AUTOEXEC.SAV")