Change File attributes

Is there a way to change a files attributes.

I need to change the modification date, creation date ,…

via a SHELL … execute the OSX terminal command “TOUCH”

Within Xojo you can do it with the CreationDate and ModificationDate properties of the FolderItem class. Both of those properties have example code showing the proper way to do it.

Really? well I’ll be danged… :slight_smile: learn something new everyday…

Thank you Harrie. That seems to work fine.

Dim newDate As New Date
newDate.Year = 1999
newDate.Month = 9
newDate.Day = 9
f.CreationDate = newDate

I try to make sure I do every day…