DIAdem API Reference

Command: FolderMove

  • Updated2023-02-21
  • 3 minute(s) read

Display all  Hide all

Moves folders into another folder.

Call FolderMove(FSSourceName, FSTargetName, [FSProgressBar])

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 moves the specified folder with its subfolders. If you do not use a wildcard in the last path component of the FSSourceName variable, DIAdem only moves the subfolders.

The FolderMove command terminates the action the first time an error occurs. DIAdem does not undo actions that it performed before the error occurred.

DIAdem moves a folder into a local read-only folder without a confirmation prompt. DIAdem cannot move folders into a read-only folder in a network.

Examples

The following example moves the C:\MyScripts folder with all its subfolders and files into the C:\temp folder.

VBScriptPython

 

Call FolderMove("c:\MyScripts","C:\temp\")

The following example moves the subfolders of the C:\MyScripts folder with all its files into the C:\temp folder.

VBScriptPython

 

Call FolderMove("C:\MyScripts\*","D:\temp\")

Related Topics

Command: FolderAttrClear | Command: FolderAttrSet | Command: FolderCopy | Command: FolderCreate | Command: FolderDelete | Command: FolderRename | Command: FolderUnzip | Command: FolderZip | Command: PathAddTrailingBackslash