DECLARE INTEGER GetLongPathName IN VB5STKIT.DLL ; STRING lpszShortPath, STRING lpszLongPath, INTEGER cchBufferVB5STKIT.DLL is included in VB5, I believe. I can send it to you if you want. In the code, you would use:
lcDirStr=IIF(EMPTY(cFolder),THIS.cAppStartPath,cFolder+"\") lclongname = REPLICATE(CHR(0), 300) lnlength = LEN(lclongname) lnresult = GetLongPathName(@lcDirStr,@lclongname,lnlength) lcRunDir=LEFT(lclongname,lnResult)+cProd+"\wwwroot"+",,201"+CHR(0) lcReadDir=LEFT(lclongname,lnResult)+cProd+"r"+",,1"+CHR(0)>I am looking for a way to display long directory names in VFP6. I am sure you have seen in Windows the directory name with ellipsis to shrink the name. Any ideas?