Command: FolderCopy
- Updated2023-02-21
- 3 minute(s) read
Command: FolderCopy
Copies folders and the files they contain to another position.
Input Parameters
FSSourceName |
Specifies the source file or source folder for DIAdem file and folder commands. |
FSTargetName |
Specifies target folders or target files for DIAdem file and folder commands. |
[FSProgressBar] |
Specifies whether the progress bar, which the operating system displays during long operations, is visible. If you assign the value TRUE to the FSProgressBar variable, DIAdem does not display the progress bar. The default value for the FSProgressBar variable is FALSE. |
| Note If you use wildcards in the last path component of the FSSourceName variable, DIAdem copies the specified folder with its subfolders. If you do not use a wildcard in the last path component of the FSSourceName variable, DIAdem only copies the subfolders but does not generate the generic folder. |
| Note DIAdem copies a folder into a local read-only folder without a confirmation prompt. DIAdem cannot copy folders into a read only folder in a network. |
| Note DIAdem terminates the FolderCopy command as soon as an error occurs. DIAdem does not undo previous changes. |
Examples
The following example copies the C:\MyScripts folder with all its subfolders and files into the C:\temp folder.
| VBScript | Python |
Call FolderCopy("C:\MyScripts","C:\temp\")
The following example copies the subfolders of the C:\MyScripts folder with all its files into the C:\temp folder. In this example DIAdem does not create a C:\temp\Myscripts folder.
| VBScript | Python |
Call FolderCopy("C:\MyScripts\*","C:\temp\")
Related Topics
Command: FolderAttrClear | Command: FolderAttrSet | Command: FolderCreate | Command: FolderDelete | Command: FolderMove | Command: FolderRename | Command: FolderUnzip | Command: FolderZip | Command: PathAddTrailingBackslash

