5.42.10 COPY

The COPY command is used to copy a file or folder on the Windows file server or to a specified file server.

Note: When copying a folder, the sub files cannot already exist.

Syntax:

Command

Keyword

Value

Developer notes for Command/Keyword/Value

COPY

SERVER

value

Optional: File server.

DOMAIN

value

Optional. Windows domain.

USER

value

Optional. User

PASSWORD

value

Optional. Password

FROM

value

Mandatory. Windows server file or folder.

TO

value

Mandatory. Windows server file or folder.

TOSERVER

value

Optional. Windows server.
Default. value of SERVER.

 

Example

 

USE BUILTIN(JSM_COMMAND) WITH_ARGS('COPY FROM(/Shared/Data/Reports) TO(/Shared/Data/ReportsBackup)') TO_GET(#JSMSTS #JSMMSG)