CopyFolder
0 | Simple copying of a folder |
1 | Copying fails if the folder already exists. |
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 folder from the host PC to the target device.
- 2. Copy folder locally on the target device from one location to another.
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. |
<%Targetfolder%> | Specifies the name of the directory to be created on the device |
<%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) |
<%CopyFlag%> | Options for the copy function. |
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. |
<%Sourcefolder%> | Specifies the path of the folder structure to be copied. |
<%Targetfolder%> | Specifies the name of the directory to be created on the device. |
<%CopyFlag%> | Options for the copy function. |
Example:
The following example copies the folder "TestFolder" from "\Hard Disk\System" to "\Hard Disk".
Copyfolder("\Hard Disk\System\TestFolder","\Hard Disk\TestFolder",1);