>*-------------------------------------------------------- > Function GetDOSPath(cWinPath) && Return a valid DOS PATH >*-------------------------------------------------------- > LOCAL nBuffer > LOCAL cReturn > LOCAL nReturn > > DECLARE INTEGER GetShortPathName IN kernel32; > STRING lpszLongPath ,; > STRING @lpszShortPath,; > INTEGER cchBuffer > > nBuffer = 255 > cReturn = SPACE(nBuffer) > nReturn = GetShortPathName( cCaminho, @cReturn, nBuffer) > > RETURN LEFT( cReturn, nReturn) >>