I am looking for a way to read lnk shortcut target, when this one locates in public folder such as:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
I tried to use following:
- Interop.Shell32.FolderItem.GetLink - it throws an exception ( Why do i get E_ACCESSDENIED when reading public shortcuts through Shell32? )
- IWshShortcut https://stackoverflow.com/a/13079688/1722921 - it throws an exception too (from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
And I didn't find others ways to do this. I know that I can fix it with elevating admin rights for my program, but I don't want to do it, since I can easily read the values through the Windows UI without getting an elevation prompt. So I am looking for a way programmatically read shortcut target without admin privileges.