Set Windows File Association
Posted: 17 May 2014 18:50
Example: Assign ext=.jpg to FileType=Image, then assign FileType=Image to ImageEye.exe seems to be an easy task, either via Registry:Or via Command promtHowever, I got this problem: http://stackoverflow.com/questions/3620 ... ssociation
I have no permission to edit HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jpg\UserChoice => Everything fail.
Now, anyone has any idea to change file association programmtically?
Code: Select all
HKEY_CURRENT_USER\SOFTWARE\Classes\.jpg
default=Image
HKEY_CURRENT_USER\SOFTWARE\Classes\Image\Shell\Open\Command
Default="E:\4Media\Image Eye\x32\Image Eye.exe" "%1"
Code: Select all
assoc .jpg=Image
ftype Image="E:\4Media\Image Eye\x32\Image Eye.exe" "%1"
I have no permission to edit HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jpg\UserChoice => Everything fail.
Now, anyone has any idea to change file association programmtically?