Command: FileDateSet
- Updated2023-02-21
- 3 minute(s) read
Command: FileDateSet
Sets time and date of files.
Input Parameters
FSSourceName |
Specifies the source file or source folder for DIAdem file and folder commands. |
FSDateType |
Specifies whether you change the time of file creation, of the last change, or of the last access. |
FSDateTime |
Specifies date and time in the time format of the operating system. |
| Note If you use two digits to specify the year, DIAdem automatically adds the first two digits of the year. |
| Note The Windows Explorer displays the date of the last file change. |
Example
The following example assigns the current date as the date of the file change to all files called Source.
| VBScript | Python |
Call FileDateSet("C:\Source.*","fdModify",Date & " " & Time)
Related Topics
Command: DataFileDelete | Command: DataFileLstGet | Command: DataFileMove | Command: DataFileRename | Command: DirLstWrite | Command: FileAttrClear | Command: FileAttrSet | Command: FileClose | Command: FileCloseAll | Command: FileCopy | Command: FileDelete | Command: FileMove | Command: FileOpen | Command: FileRename | Function: DataFileSize

