#DEFINE _SERVER "svrgoliath" #DEFINE _PATH "storage" function ServerTime( cServerName, cPath ) local cUNC,cTmpFile,tServerTime if empty( cServerName ) cServerName = _SERVER endif if empty( cPath ) cPath = _PATH endif cTmpFile = '!'+right(SYS(2015),7)+'.tmp' cUNC = addbs('\\'+cServerName) if left(cPath,1) = '\' cPath = subs(cPath,2) endif cUNC = addbs(cUNC+cPath)+cTmpFile set alternate to ( cUNC ) ? set alternate to tServerTime = FDATE( cUNC, 1 ) delete file ( cUNC ) return tServerTimeIt actually returns a DateTime but you can pull the time out if you want. As you can see, the user will need write,read,delete access on the path you sepcify for this to work.