RISEBY
Private Declare Function GetShortPathName Lib "kernel32" Alias "GetShortPathNameA" (ByVal lpszLongPath As String, ByVal lpszShortPath As String, ByVal cchBuffer As Long) As LongPrivate Sub Command1_Click()Dim A1 As String, B1 As String, n As LongA1 = "C:\Program Files\Common Files\Microsoft Shared\OFFICE11\MSSOAP30.DLL"B1 = String(255, 0)n = GetShortPathName(A1, B1, 255)B1 = Left(B1, n)MsgBox B1End Sub