>>mytest = lcPath + "\nul.txt" && nul.txt should exist in every directory! >>if file(mytest) then && dir exists >> copy file (myhappyfile) to (lcPath) >>else >> md lcPath >> copy file (myhappyfile) to (lcPath) >>endif >>>>
if not directory(lcPath) md (lcPath) endif COPY FILE (myhappyfile) TO (ForcePath(myhappyfile, lcPath))ForcePath() is another FoxTools citizen who made it into regular citizenship in VFP6.