Skip to content

MOVE_FILES ​

MOVE_FILES moves multiple files and/or directories to another directory.

Syntax ​

leo-grammar
CC "AdoScript" MOVE_FILES strValue to:strValue

# --> RESULT ecode:intValue

Parameters ​

  • <main-parameter> (strValue) - specifies the files which shall be moved, by providing the path and file names (the file names can contain wildcards)
  • to (strValue) - the name of the target directory where the files shall be moved to. This can be the name of one file, e.g. "d:\temp\test.html", or a name containing wildcards, e.g. "d:\temp\**.html". Relative paths relate to the current working directory (CWD).

Returns ​

  • ecode (intValue) - Contains the error code or 0 in case of success.

Details ​

The target directory must exist.

If a (directly specified or matching) source file name is the name of a directory, a moving of the complete directory to the target directory is performed.

MOVE_FILES works only with files in the file system, not with files in the database.

See Also ​

Examples ​

asc
CC "AdoScript" MOVE_FILES "d:\\temp1\\**.html" to:"d:\\temp2"

Versions and Changes ​

Available since ADOxx 1.3