FileSetDate can be used that way :
fHandle := FileOpen(File_Name,fmOpenReadWrite or fmShareExclusive);
errorcode := FileSetDate(fHandle, FileDate );
FileClose(fHandle) ;
but this way, it returns errorcode 5 (no acces) :
errorcode := FileSetDate(File_Name, FileDate );
rai yul