>lnNumber= ADIR(laGifs,SUBSTR(oProp.AppStartPath,1,ATC([AVFPdemo2],oProp.AppStartPath)+8)+'r\temp\*.gif') && Create array >FOR i = 1 TO lnNumber && Loop for number of files >IF DATETIME() - CTOT(DTOC(laGifs(i,3))+' '+laGifs(i,4)) > 1200 && files older than 20 Minutes, erase > ERASE (SUBSTR(oProp.AppStartPath,1,ATC([AVFPdemo2],oProp.AppStartPath)+8)+'r\temp\'+laGifs(i,1)) >ENDIF >ENDFOR >>BTW, Timers will not work directly in a vfp mtdll. I'm not even sure they would work in a COM .exe called from a mtdll although I could be wrong(maybe 3rd party C++ timer would work).