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..
Printable View
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..
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:
Dim arrHeaders(41) Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.NameSpace("C:\temp") For i = 0 To 40 arrHeaders(i) = objFolder.GetDetailsOf(objFolder.Items, i) Next For Each strFileName In objFolder.Items For i = 0 To 40 MsgBox i & vbTab & arrHeaders(i) & ": " & objFolder.GetDetailsOf(strFileName, i) Next Exit For Next