#define crlf CHR(13) + CHR(10) *!* oMyFiler = CREATEOBJECT('Filer.FileUtil') *!* oMyFiler.SearchPath = "t:\jpg" *!* oMyFiler.FileExpression = '*e4*.jpg' *!* oMyFiler.Find(0) *!* =MESSAGEBOX(oMyFiler.Files.Count) *!* _cliptext = "" *!* FOR EACH loFile IN oMyFiler.Files *!* _cliptext = _cliptext + loFile.Name + CRLF *!* NEXT =MESSAGEBOX(DIRECTORY("t:\jpg")) ltTime = DATETIME() _cliptext = "" CREATE CURSOR crsTest (FieldName C(50)) lcFileName = SYS(2000,[t:\jpg\*e4*.jpg]) && All files DO WHILE NOT EMPTY(lcFileName) *!* IF LIKE(UPPER(myStemPart), UPPER(JUSTSTEM(lcFileName))) OR; *!* LIKE(UPPER(myExtPart), UPPER(JUSTEXT(lcFileName))) *!* *!* ENDIF WAIT WINDOW NOWAIT m.lcFileName IF NOT "E4" $ UPPER(m.lcFileName) _cliptext = _cliptext + m.lcFileName + CRLF INSERT INTO crsTest VALUES (m.lcFileName) endif lcFileName = SYS(2000,[t:\jpg\*e4*.jpg],1) ENDDO =MESSAGEBOX(DATETIME() - m.ltTime) =MESSAGEBOX(RECCOUNT('crsTest'))I'm accessing this computer through LogMeIn and the computer is connected to terminal server where the files reside. The connection with the server is not very good from our place.