Y
yxq
Hello,
How to convert "c:\PROGRA~1" to "c:\program files"
Thank you
How to convert "c:\PROGRA~1" to "c:\program files"
Thank you
Dennis said:Declare Auto Function GetLongPathName Lib "kernel32.dll" _
(ByVal lpszShortPath as string, ByVal lpszLongPath as stringbuilder, ByVal
cchBuffer as integer) _
as Integer
Public Function ToLongPathName (shortName as String) as String
Dim longNameBuffer as New StringBuilder(256)
Dim BufferSize as Integer = longNameBuffer.Capacity
GetLongPathName(shortName, longNameBuffer, bufferSize)
Return longNameBuffer.ToString()
End Function