Syntax

xcopy [/-Y] <source> [<target>]

Meaning

Copy one or more source files in your file system to a different (target) location (a folder and/or file names for the new files). You can use wildcards (*). This function can only be used in ADAPL as the parameter in a SYSTEM command.

/-Y asks for confirmation before overwriting a target file.

Parameters between [ and ] are optional, and parameters between < and > must be replaced by an actual value. Do not include any of these brackets in your command.

Examples

stat = SYSTEM('xcopy *.txt C:\myfiles\')

stat = SYSTEM('xcopy "C:\Axiell Software\test*.txt" "C:\Axiell Software\Backups\"')

stat = SYSTEM('xcopy /-Y ..\..\test*.txt ..\..\Backups\')