CopyFolder

Extracted nested table 4

0

Simple copying of a folder

1

Copying fails if the folder already exists.

Extracted nested table 2

0

Simple copying of a folder

1

Copying fails if the folder already exists.

This script function can be used for executing two different copy processes.

1. Copy from the host PC to the target device:

Copyfolder(<$NetShare$>\<%Targetfolder%>,<%Targetfolder%>,<%CopyFlag%>);

Parameter

Description

<$NetShare$>

Name of the activation in which the folder structure can be found.
Example value:

"\\hostPc\TcManagementSrv_TEST"

<%Targetfolder%>

Specifies the name of the directory to be created on the device
Example value:

"\Hard Disk\TestFolder"

<%Targetfolder%>

Specifies the path of the folder structure to be copied. (Usually the same name as the first "Targetfolder" parameter. Therefore the same parameter name)
Example value:

"\Hard Disk\TestFolder"

<%CopyFlag%>

Options for the copy function.
Example values:

see "Extracted nested table 2"

Example:

Copyfolder("\\hostPC\TcManagementSrv_TEST"\"\Hard Disk","\Hard Disk",1);

2. Copying locally on the target device:

Change the parameter names as described here:

Copyfolder(<%LocalShare%>\<%Sourcefolder%>,<%Targetfolder%>,<%CopyFlag%>);

Parameter

Description

<%LocalShare%>

Name of the activation in which the folder structure can be found.
Example value:

"\Hard Disk"

<%Sourcefolder%>

Specifies the path of the folder structure to be copied.
Example value:

"\TestFolder"

<%Targetfolder%>

Specifies the name of the directory to be created on the device.
Example value:

"\Hard Disk\System\TestFolder"

<%CopyFlag%>

Options for the copy function.
Example values:

see "Extracted nested table 4"

Example:

The following example copies the folder "TestFolder" from "\Hard Disk\System" to "\Hard Disk".

Copyfolder("\Hard Disk\System\TestFolder","\Hard Disk\TestFolder",1);