Hi guys,
Actually, I am newbie at NSIS.
I wonder if there is any way to find the shortcut that is changed its name by user.
Thanks in advance.
-John
how to find a changed shortcut
4 posts
Shortcuts are .lnk files saved in folder (e.g. Desktop).
Simply search for all *. lnk files in desired directory and do your action with shortcut you want:
Simply search for all *. lnk files in desired directory and do your action with shortcut you want:
FindFirst $0 $1 $DESKTOP\*.lnk
loop:
StrCmp $1 "" done
DetailPrint $1
FindNext $0 $1
Goto loop
done:
FindClose $0 Hi Slappy,
Thank you for letting me know how to traverse in desktop directory.
However, I want to see its attributes such as target, start in, etc.., to find changed shortcut.
* I tried to see its attribute with GetFileAttributes, but it was blank.
is there any other function ?
-John
Thank you for letting me know how to traverse in desktop directory.
However, I want to see its attributes such as target, start in, etc.., to find changed shortcut.
* I tried to see its attribute with GetFileAttributes, but it was blank.
is there any other function ?
-John