file.setCreated

Syntax file.setCreated (path, when)

Params path is thepath to the file or folder whose creation date you wish to set.

when is a date value to be established as the creation date for the file.

Action Sets the date indicating when the file was created.

Returns True when the date is successfully set, false otherwise.

Examples file.setCreated ("C:\\Program Files\\Frontier\\sample.txt", clock.now ())

   » true


file.setCreated ("System:tmp", clock.now ())

   » true // sets creation to the current date and time

file.setCreated ("System:tmp", 0)

   » true // Sets file creation date to 1/1/04, at12:00AM.

Notes This is an advanced Frontier verb of primary interest to implementers and advanced scripters. It is not necessary to understand it to use Frontier effectively for most tasks.

The file.new verb sets the creation date, and the file.created verb returns it.

It's not usually a good idea to change the creation date of a file.

See Also file.created

file.modified

file.setModified

Discuss