DIAdem API Reference

Command: DataFileRename

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

Display all  Hide all

Labels .tdm, .tdms, or .dat type DIAdem files and the associated binary files that contain the bulk data.

Call DataFileRename(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  DIAdem renames the header file and the associated binary files and automatically adjusts the references to the binary files in the header file.
Note  DIAdem only renames files and the associated header files, regardless of the filename extension you specify for the FSSourceName variable.
Note  Use the FileRename command to rename any file types.
Note  The page Loading Bulk Data - General contains important information on the extended loading behavior of TDM and TDMS files.

Example

The following example renames the Example1.dat header file and the associated binary files to Example2.dat.

VBScriptPython

 

Call DataFileRename("Example1", "Example2")

Related Topics

Command: DataFileDelete | Command: DataFileLstGet | Command: DataFileMove | Command: DirLstWrite | Command: FileAttrClear | Command: FileAttrSet | Command: FileClose | Command: FileCloseAll | Command: FileCopy | Command: FileDateSet | Command: FileDelete | Command: FileMove | Command: FileOpen | Command: FileRename | Function: DataFileSize