function getservertime() #define hServerPath "\\machine\up\there" lcFile=forcepath(forceext(sys(2015), "tmp"), hServerPath) h=fcreate(lcFile) if h>0 fwrite(h,"...") fclose(h) ltTime=fdate(lcFile,1) erase (lcFile) else ltTime={ :} endif return ltTimeTake this as metacode - first, you need to get the server path from somewhere, not hardcode it. Second, you may as well use strtofile() instead, may look cleaner.