Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Files.SetModificationDate
Sets the file modification date.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Files | 7.2 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| Path | The native path to the file. | "/Users/cs/Desktop/test.txt" |
| TimeStamp | The new modification date and time. | Get(CurrentTimeStamp) |
Result
Returns OK or error.
Description
Sets the file modification date.Examples
Set time to now minus 24h:
MBS( "Files.SetModificationDate"; "/Users/cs/Desktop/test.rtf"; Hole ( HostZeitstempel ) - 24*3600 )
Set timestamp to now:
MBS( "Files.SetModificationDate"; "C:\Users\Administrator\Desktop\logo.png"; Get(CurrentHostTimeStamp))
See also
Blog Entries
Release notes
- Version 7.2
- Added Files.SetModificationDate.
Created 19th April 2017, last changed 19th April 2017
Files.SetHidden - Files.SetPosixPermissions
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins