CopyDir

(System Library)

Description: This subroutine recursively copies a directory's files and sub-directories down through the entire directory tree.
Returns: Nothing
Usage: Script Only.
Function Groups: File I/O
Related to: CheckFileExist | CheckPathExist | GridList
Format: System.CopyDir(Destination, Source)
Parameters:  
Destination
Required. Any text expression giving the directory into which the source directory is to be copied. This directory must already exist.
Source
Required. Any text expression giving the directory to be copied.
Comments:

This module is a member of the System Library, and must therefore be prefaced by \System. as shown in the "Format" section.

If your application predates version 11.2, use the backslash notation rather than dot: \System\

This function is session non-aware, meaning it works on the server's file system even with an active remote connection established.This function is also blocking. All concurrent thread operations will be paused until its execution has concluded. Avoid using this function to access a network file path ("\\server1\share\file.txt", for example). If the network location is unavailable while a blocking File I/O function is attempted, it will block indefinitely. It is recommended that a target file be copied to the local file system for access rather than over the network from VTScada.

Example:

    System.CopyDir("C:\OEMApp", "App1");