Created
July 17, 2019 17:03
-
-
Save Riebart/de2726490b3a3141a51a277c4bf3bd62 to your computer and use it in GitHub Desktop.
FInd the target of a file reparsepoint (such as those used for binaries in Store apps)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[String]::Join( | |
"", | |
(( | |
[String]::Join( | |
" ", | |
(fsutil reparsepoint query (Get-Command python3).source | | |
Select-String -Pattern "^[0-9a-f]*: ([0-9a-f ]*) ([0-9a-f ]*) .*$" -AllMatches | | |
% { $_.Matches.Groups[1..2].Value})) -replace "([0-9a-f]{2}) ([0-9a-f]{2})",'$2$1' | |
).Split(" ") | | |
where { $_.length -gt 0 } | | |
% { [Char][Convert]::ToUint16($_,16) } | |
) | |
).Split("`0")[3] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment