>set talk off >set deleted on >local lnRetVal, i, j, lcFile, llFound, lcStr, lcPath >local array laFiles(1,2) >cd forms && change to my forms folder >lnRetVal = adir(laFiles, "*.scx") >for i = 1 to lnRetVal > lcFile = laFiles(i,1) > use (lcFile) excl > locate for "DATABASE" $upper(Properties) > do while !eof() > llFound = .f. > for j = 1 to memlines(properties) > if alltrim(upper(substr(mline(properties, j), 1, 8))) = "DATABASE" > llFound = .t. > exit > endif > next > if llFound > lcStr = mline(properties, j) > lcStr = alltrim(substr(lcStr, 11)) > lcPath = justpath(lcStr) > lcPath = addbs(lcPath) > replace next 1 properties with strtran(properties, lcPath, "") > endif > continue > enddo > pack > use > compile form (lcFile) >next >cd ..Thanks for the help - I modified the above program slightly and it seems to do the trick. What a pain!