Let's a .BAT file "test.bat" like:
Code: Select all
ECHO.Path of this script %~nx0: %~DP0
ECHO.Path of its Windows shortcut(.LNK): __ ?
Pause&EXIT
and its MS Windows shortcut "test.lnk" (located in another folder).
How to get the path (and file name) of this shortcut "test.lnk"
a) when double clicking on the .LNK
b) when dropping a file on this .LNK
Thanks