VB Code:
  1. Option Explicit
  2.  
  3. Private Sub Command1_Click()
  4.     MsgBox GetTargetPath("ShortCut Filename")
  5. End Sub
  6.  
  7. Function GetTargetPath(ByVal FileName As String)
  8.  
  9. Dim Obj As Object
  10. Set Obj = CreateObject("WScript.Shell")
  11.  
  12. Dim Shortcut As Object
  13. Set Shortcut = Obj.CreateShortcut(FileName)
  14. GetTargetPath = Shortcut.TargetPath
  15. Shortcut.Save
  16.  
  17. End Function