How to get Full Target String from Shortcut lnk

前端 未结 1 795
南方客
南方客 2021-01-27 16:54

Please i am trying to get the full target from a shortcut file. I am using the below function

Public Function GetLnkTarget(lnkPath As String) As String
        D         


        
相关标签:
1条回答
  • 2021-01-27 17:30

    You need to access the Shortcut.Arguments property. See here for the reference of the shortcut object.

    https://msdn.microsoft.com/en-us/library/f5y78918(v=vs.84).aspx

    So your code will be:

    Return Shortcut.TargetPath.ToString & " " & Shortcut.Arguments
    
    0 讨论(0)
提交回复
热议问题