Skip to content

Instantly share code, notes, and snippets.

@kkirsche
Created December 1, 2017 15:16
Show Gist options
  • Select an option

  • Save kkirsche/a70947dad1c2c49a81fc07352e759edb to your computer and use it in GitHub Desktop.

Select an option

Save kkirsche/a70947dad1c2c49a81fc07352e759edb to your computer and use it in GitHub Desktop.
Decode a Windows LNK target path
set WshShell = WScript.CreateObject("WScript.Shell")
set Lnk = WshShell.CreateShortcut(WScript.Arguments.Unnamed(0))
wscript.Echo Lnk.TargetPath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment