Show pageOld revisionsBacklinksBack 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. ====== 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 ==== [[copyosfile|CopyOSFile()]] [[beep_service|BEEP]] Service [[destroy_service|DESTROY]] Service [[removedir_service|REMOVEDIR]] Service [[choosecolor_service|CHOOSECOLOR]] Service [[flush_service|FLUSH]] Service [[renamedir_service|RENAMEDIR]] Service [[choosedir_service|CHOOSEDIR]] Service [[get_event_service|GET_EVENT]] Service [[renamefile_service|RENAMEFILE]] Service [[choosefile_service|CHOOSEFILE]] Service [[getlogicaldrives_service|GETLOGICALDRIVES]] Service [[runhelp_service|RUNHELP]] Service [[choosefont_service|CHOOSEFONT]] Service [[makedir_service|MAKEDIR]] Service [[runwin_service|RUNWIN]] Service [[copyfile_service|COPYFILE]] Service [[objectid_service|OBJECTID]] Service [[textrect_service|TEXTRECT]] Service [[create_service|CREATE]] Service [[objectlist_service|OBJECTLIST]] Service [[wincount_service|WINCOUNT]] Service [[cursor_service|CURSOR]] Service [[printsetup_service|PRINTSETUP]] Service [[utility|Utility]] function ==== Example ==== <code> /* copy C:\AUTOEXEC.BAT to C:\AUTOEXEC.SAV */ declare function Utility retval = Utility("COPYFILE" , "C:\AUTOEXEC.BAT", "C:\AUTOEXEC.SAV") </code> guides/programming/programmers_reference_manual/copyfile_service.txt Last modified: 2024/06/19 20:20by 127.0.0.1