So aside from using WSH, how could one read the target of a shortcut knowing the full path of the link? It would appear that Application.Shell and WMI could both do the task but I am having little success. I can easily usecode:
GetObject("WinMgmts:\root\cimv2").ExecQuery("Select * From Win32_ShortcutFile")
to enumerate all shortcuts within a computer, but I am having problems getting one specific shortcut. I have triedcode:
GetObject("WinMgmts:\root\cimv2").ExecQuery("Select * From Win32_ShortcutFile Where Name='C:\Documents and Settings\All Users\Start Menu\Programs\Startup\test.lnk'")
but it returns nothing instead of the shortcut. I understand that Application.Shell may also be able to do this so my ears are open to suggestion.