I use FindFirstFile() and FindNextFile() to browse thru a directory containing shortcut(.ink)
how can i resolves the attributes of a shortcut file.
Thanks,
Preetham.
In VB you could use the following, which may give you a pointer to a solution in whatever language you are using.: [tt]
Dim wsh As Object
Dim shortcut As Object
Set wsh = CreateObject("wscript.shell"
Set shortcut = wsh.CreateShortcut("c:\windows\desktop\cheatm~1.lnk" 'Path of an existing shortcut
MsgBox shortcut.TargetPath
The first field (dwFileAttributes) contains the attributes. You can test it with all the FILE_ATTRIBUTE_.... constants,
like:
if ( wfd.dwFileAttributes == FILE_ATTRIBUTE_SYSTEM )
{ // This is a system file
.... }
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.