Taking too long? Close loading screen.

Batch Functions

File Management

CopyFolder

Function: CopyFolder (Source As String, Target As String) As Integer

Copies contents of a source folder including subdirectories to the target folder. If target folder exists then it will be deleted before copy operation is performed.

Returns True(-1) if successful or False(0) if failed.

Example:

Dim ExistingFolder As String, NewFolder As String

ExistingFolder = "$PATH\$DATASET\RI IFRS 17"
NewFolder = "$PATH\$DATASET\RI IFRS 17_TRAD"

Call CopyFolder(ExistingFolder, NewFolder)

DeleteFolder

Function: DeleteFolder (FolderName As String) As Integer

Deletes a directory with all its contents. Returns True(-1) if successful or False(0) if failed.

Example:

Dim ExistingFolder As String

ExistingFolder = "$PATH\$DATASET\RI IFRS 17"

Call DeleteFolder(ExistingFolder)