title: How to get Full Target String from Shortcut lnk
body: <p>Please i am trying to get the full target from a shortcut file. I am using the below function</p>
  
  <pre><code>Public Function GetLnkTarget(lnkPath As String) As String
          Dim Obj As Object
          Obj = CreateObject("WScript.Shell")
          Dim Shortcut As Object
          Shortcut = Obj.CreateShortcut(lnkPath)
          Return Shortcut.TargetPath.ToString
  End Function
  </code></pre>
  
  <p>For example i have a shortcut .lnk file with the following target:</p>
  
  <pre><code>C:\WINDOWS\system32\wscript.exe /e:VBScript.Encode Folder/skype.exe
  </code></pre>
  
  <p>When i use the function to get the target from the following .lnk
  D:\Shortcut.lnk</p>
  
  <pre><code>GetLnkTarget("D:\Shortcut.lnk")
  </code></pre>
  
  <p>i get the following output</p>
  
  <pre><code>C:\WINDOWS\system32\wscript.exe
  </code></pre>
  
  <p>So it does not return the full string of the Target as "/e:VBScript.Encode Folder/skype.exe" is missing from the output.</p>