>Assuming you gave the function a name like FoxTouch (I vaguely remember there was FoxTouch doing this) :
>FoxTouch("c:\tmp\myfile.txt", datetime())
>It changes all 3 datetimes (create, last access, last write). Arrange code if you need to touch only one of them.
Cetin,
Yep, there's one in the Foxtools library. It can only modify the last modified date/time and it has a bug. It stamps the file with the current UTC time rather than the local time on some systems depending on the file system. I think the problem is that the function was orginally written for FAT file systems (which stores the local time), while NTFS uses UTC.
George
Ubi caritas et amor, deus ibi est