Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides
New in version: 5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2    Statistic  

Files.SetModificationDate

Sets the file modification date.

Component: Files
Version: 7.2
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "Files.SetModificationDate"; Path; TimeStamp )

Parameters

Parameter Description Example value
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


Files.SetHidden   -   Files.SetPosixPermissions

Feedback: Report problem or ask question.




Links
MBS REALbasic Plugins - Christians Software aus Nickenich