If File('i:\data\ecnc\data\setservertime.txt') Delete File 'i:\data\ecnc\data\setservertime.txt' ENDIF cFileDesc='File is created and deleted on the server so that the time can be retrieved from the remote server independant of the client ' + TTOC(DATETIME()) Strtofile(cFileDesc,'i:\data\ecnc\data\setservertime.txt') ? Datetime() &&returns the client datetime ? Fdate('I:\DATA\ecnc\Data\setservertime.txt',1) &&returns the server datetimethere is only second or two difference between the two when the clocks are synched.