Results 1 to 3 of 3

Thread: Convert a long path name to a short path name

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Posts
    19

    Exclamation

    Hello,

    Does some one could tell me how could i convert a long path name to a short path name (8+3)

    For exemple :

    C:\MY DOCUMENTS\MY_EXEMPLE.DOC

    => C:\MYDOCU~1\MY_EXE~1.DOC

    Thank you for your help.....

  2. #2

  3. #3
    Guest
    Code:
    Path = "C:\Windows\Desktop\MyFile.txt"
    ShortPath = Right(Path, Len(Path) - InStrRev(Path, "\"))
    Print ShortPath

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