PDA

Click to See Complete Forum and Search --> : Short File Name


Jan 8th, 2000, 12:20 AM
I am trying to convert The Windows Long Path To Dos Short Path
C:\Program Files\Microsoft\
C:\Progra~1\Micros~1\

I was useing the

Declare Function GetShortPathName Lib "kernel32" (ByVal lpszLongPath As String, ByVal lpszShortPath As String, ByVal cchBuffer As Long) As Long

but, i get the error
"Can Not Find GetShortPathName Insertion Point In Kernel32"

Is there another way to do this?

Clunietp
Jan 8th, 2000, 12:37 AM
you don't have the ALIAS in your API call.

Use the code from here: This will show you how to use the API, etc. etc.
http://support.microsoft.com/support/kb/articles/Q175/5/12.ASP

I see you didn't like my other answer. FINE! BE THAT WAY! Just use your fancy API that is less code and more reliable. I DON'T CARE! :)

Tom

Ruchi
Jan 8th, 2000, 02:07 AM
See Post
http://www.vb-world.net/ubb/Forum1/HTML/010875.html


Ruchi

[This message has been edited by Ruchi (edited 01-08-2000).]