Created
November 27, 2017 12:57
-
-
Save mkht/f4fde36c633c6c68278180e3e66261e7 to your computer and use it in GitHub Desktop.
Photoshopの関連付けを64bit版に直すスクリプト
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
$PS32 = 'C:\Program Files (x86)\Adobe\Adobe Photoshop CC 2018 (32 Bit)\Photoshop.exe' | |
$PS64 = 'C:\Program Files\Adobe\Adobe Photoshop CC 2018\Photoshop.exe' | |
gci HKLM:\SOFTWARE\Classes | ? {$_.Name -match 'Photoshop'} | gci -Recurse | gp | ? {$_.'(default)'.contains($PS32)} | % { sp -Path $_.PSPath -Name '(default)' -Value $_.'(default)'.Replace($PS32,$PS64)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment