Command: FileRename
- Updated2024-09-12
- 3 minute(s) read
Command: FileRename
Command: FileRename
Renames files.
Input Parameters
![]() |
Specifies the source file or source folder for DIAdem file and folder commands. |
![]() |
Specifies target folders or target files for DIAdem file and folder commands. |
![]() |
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 You cannot rename and move files at the same time. |
![]() | Note DIAdem renames read-only files on your computer without a confirmation prompt. DIAdem does not rename read-only files in a network. |
![]() | Note To rename .tdm, .tdms and .dat type DIAdem files and the associated binary files, which contain the mass data, use the DataFileRename command. |
Example
The following example renames the file Example.vbs to Example.old.
VBScript | Python |
Call FileRename("C:\Example.vbs","C:\Example.old")
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: FileMove | Command: FileOpen | Function: DataFileSize