|
-
Jun 25th, 2003, 06:24 PM
#1
Thread Starter
Junior Member
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..
-
Jun 26th, 2003, 08:47 AM
#2
Frenzied Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|