Results 1 to 3 of 3

Thread: Short File Name

  1. #1
    Guest

    Post

    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?

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    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.../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

  3. #3
    Member
    Join Date
    Dec 1999
    Posts
    37

    Post

    See Post
    http://www.vb-world.net/ubb/Forum1/HTML/010875.html


    Ruchi

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width