DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Command: FileRename

Display all  Hide all

Command: FileRename

Renames files.

Call FileRename(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  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.

VBScriptPython

 

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

Was this information helpful?