COPYFILE |
Top Previous Next |
Syntax INT = COPYFILE(source as STRING,dest as STRING,fail as INT) Description Copies the file specified by the source path to the destination path Parameters source - Source file to copy. dest - Destination filename. The destination filename does not have to be the same as the source. fail - If fail = 1 then the function will not copy the file if it already exists in the destination directory. If fail = 0 then the file will be overwritten Return value COPYFILE returns 0 on error. Remarks See Also: CREATEDIR Example usage COPYFILE "c:\\mylog.log", "c:\\logs\\today.log" |