Is there a way to get file attributes?

Is there a way to find out the create date of a text file in the data directory? We have several processes that create various files on the server and we’ve come up with a utility to remove them. As part of that utility we’d like to set a flag to delete files older than x days. We’re using the DIR command to get the file names but that doesn’t get us all of the info that we need.

I tried various search terms in here with no luck so I’m assuming that it might not be possible.

Subject: Use FileDateTime

In-built LS function.

Msgbox Filedatetime(“C:\AUTOEXEC.BAT”)