title: Windows path too long
body: <p>Following snippet shows how to extract the target of a shortcut in Windows:</p>
  
  <pre><code>import win32com.client
  shell = win32com.client.Dispatch("WScript.Shell")
  fp = r'C:\very_long_path\to\a\link\file\shortcut.lnk'
  shortcut = shell.CreateShortCut(fp)
  #targetPath = "\\\\?\\"+shortcut.Targetpath # Does not help
  targetPath = shortcut.Targetpath
  </code></pre>
  
  <p>The code above fails if the lnk file is on a too long path.
  How can I get the shortcut's target path in this case?</p>