>I work with Visual FoxPro and AutoCAD.
AutoCAD do not like the long paht and file name like:
>c:\Répertoire long\MonFichieravecé.dwg
>How can I conver the path and file name in the sort path and file name with ~ in the path?Try with this:
LOCAL lcFile,loFso,loFile
lcFile = "c:\Répertoire long\MonFichieravecé.dwg"
loFso = CREATEOBJECT("Scripting.FileSystemObject")
loFile= loFso.GetFile(lcFile)
?loFile.ShortPath()
HTH.