Command: FileMove
- Updated2023-02-21
- 3 minute(s) read
Command: FileMove
Moves files to another folder.
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 The FileMove command terminates the action as soon as an error occurs. DIAdem does not undo actions that it performed before the error occurred. |
| Note DIAdem moves a local read-only file without a confirmation prompt. DIAdem cannot move files into a read-only file in a network. |
![]() | Note To move .tdm, .tdms and .dat type DIAdem files and the associated binary files, which contain the mass data, use the DataFileMove command. |
Examples
The following example moves the Source.txt file from the SCRIPT user folder to the D:\Test folder and renames the file Target.txt.
| VBScript | Python |
Call FileMove(ScriptReadPath & "Source.txt","D:\Test\Target.txt")
The following example moves all files called Source, such as Source.dat, Source.r48 or Source.doc, from the SCRIPT user folder to the D:\Target folder.
| VBScript | Python |
Call FileMove(ScriptReadPath & "Source.*","D:\Target\")
Related Topics
Command: DataFileDelete | Command: DataFileLstGet | Command: DataFileMove | Command: DataFileRename | Command: DirLstWrite | Command: FileAttrClear | Command: FileAttrSet | Command: FileClose | Command: FileCloseAll | Command: FileCopy | Command: FileDateSet | Command: FileDelete | Command: FileOpen | Command: FileRename | Function: DataFileSize


