- Option Explicit
- Private Declare Function GetShortPathName Lib "kernel32.dll" Alias "GetShortPathNameA" (ByVal lpszLongPath As String, ByVal lpszShortPath As String, ByVal cchBuffer As Long) As Long
-
- Private Sub Form_Load()
- Dim buf As String, out_len As Long
- buf = Space$(1024)
- out_len = GetShortPathName("F:\My Documents\Æóðíàë Ðàäèî\Radio\2003\Ðàäèî 2003-03.djvu", buf, 1024)
- buf = Left$(buf, out_len)
- Debug.Print buf
- End Sub
Ответить
|