CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    How to get the short name of a directory ?

    If I have a directory with long name (e.g. c:\dir_12345678), how can I get its short name c:\dir_12~1 ?
    Is there any function to convert the long name to a short name ?

    Thanks.


  2. #2
    Join Date
    Jul 1999
    Location
    Moscow, Russia
    Posts
    667

    Re: How to get the short name of a directory ?

    Use GetShortPathName API function,

    Good luck,

    Oleg.



  3. #3
    Guest

    Re: How to get the short name of a directory ?

    I tried GetShortPathName() before but it only works on file (not directory).
    Is this true ?


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

Featured