Results 1 to 2 of 2

Thread: how to get excact path from windows shortcuts

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2003
    Posts
    19

    how to get excact path from windows shortcuts

    Hi there, how can i get the excact path that are in a shortcut ...
    the same path as you see when rightclicking choosing properties of the shortcut ? including exe name..

  2. #2
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Newbury, UK
    Posts
    1,878
    Either look in here: http://www.wotsit.org/search.asp?page=1&s=windows to get the file layouts of Windows files, and that might explain where in the file the data is held.

    Or look at some of the different ways of getting properties of a file, e.g.:
    VB Code:
    1. Dim arrHeaders(41)
    2. Set objShell = CreateObject("Shell.Application")
    3. Set objFolder = objShell.NameSpace("C:\temp")
    4. For i = 0 To 40
    5.     arrHeaders(i) = objFolder.GetDetailsOf(objFolder.Items, i)
    6. Next
    7. For Each strFileName In objFolder.Items
    8.     For i = 0 To 40
    9.         MsgBox i & vbTab & arrHeaders(i) & ": " & objFolder.GetDetailsOf(strFileName, i)
    10.     Next
    11.     Exit For
    12. Next

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