Function: DataFileSize
- Updated2024-09-12
- 2 minute(s) read
Function: DataFileSize
Function: DataFileSize
Determines the size in bytes of a DIAdem file that is a .tdm, .tdms, or .dat type and the associated binary files that contain the bulk data.
ReturnValue = DataFileSize(FileName )
Input Parameters
| FileName | Specifies a filename with path and extension. In the filename and extension, you can use ? as a wildcard for a single character and * for several characters. If you do not specify a path, DIAdem searches for the file in the DIAdem folder. |
Return Parameters
| ReturnValue | Returns an integer value. If DIAdem cannot uniquely determine or find the file, the function returns the value 0. |
Examples
The following example determines the size of a TDM file and the associated binary file.
| VBScript | Python |
Dim intMyResult intMyResult = DataFileSize(DataReadPath & "Drive.tdm") intMyResult = DataFileSize(ProgramDrv & "Example\Data\Course.tdm")
Related Functions
Command: ChnValExpand | Command: DataFileCopy | Command: DataFileDelete | Command: DataFileLoad | Command: DataFileLoadRed | Command: DataFileLoadSel | Command: DataFileLstGet | Command: DataFileMove | Command: DataFileRename | Command: DataFileSave | Command: DataFileSaveSel | Command: DataFileSelDlg | Command: DataFileSelDlg | Command: FileDlgShow | Command: FileNameGet | Command: FileNameGet | Command: PathDlgShow | Commands and Variables for Working with Data | Commands and Variables for Working with Files and Folders | DIAdem Library Paths | DIAdem Path Variables | DIAdem User Paths | Function: FileAttrCheck | Function: FileDateGet | Function: FileSize | Function: FilEx | Function: FolderAttrCheck | Function: FolderDateGet | Function: FolderExist | Function: FolderSize | Variable: FileExportFilter | Variable: FileFilter | Variable: FileImportFilter