Created
June 13, 2020 10:15
-
-
Save hainh/5f4524f4f6609aef5a883816c30bd4d7 to your computer and use it in GitHub Desktop.
This file contains 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
foreach ($ext in $args) { | |
if ($ext.startswith(".")) { | |
$path = "HKLM\SOFTWARE\Classes\" + $ext; | |
reg add $path /v PerceivedType /t REG_SZ /d text | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment