DIAdem API Reference

Command: DataFileLstGet

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

Display all  Hide all

Reads a DIAdem file that is a .tdm, .tdms, or .dat type, and creates a list of the associated binary files.

ReturnValue = DataFileLstGet(FSSourceName, [DataFileLstMode])

Input Parameters

FSSourceName Specifies the source file or source folder for DIAdem file and folder commands.
[DataFileLstMode] Specifies whether you store the names of the selected files with absolute paths or without paths.

Return Parameters

ReturnValue Receives the number of files found. The return value is a DataFileLstLen type.
DataFileLstReceives the list of files found.

Example

The following example creates a list of the data files for the Drive.dat file.

VBScriptPython

 

Dim intCount
If FileExist(DataReadPath & "Drive.dat") Then
  For intCount = 1 to DataFileLstGet(DataReadPath & "Drive")
    Call MsgBoxDisp(DataFileLst(intCount))
  Next
End If

Related Topics

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