The following example makes a copy of a file in the current directory:

new File( ).copy( "AFILE", "ACOPY" )

dBL also offers the same functionality in the COPY FILE command. To perform the same operation as above, you could enter

copy file AFILE to ACOPY