Home » Questions » Computers [ Ask a new question ]

Associate a File Type with a Specific Program

Associate a File Type with a Specific Program

How do you associate a specific file type to an application on a Windows (Vista) PC?

Asked by: Guest | Views: 43
Total answers/comments: 4
Guest [Entry]

"Method #1 (on the fly):

Right-click a file of the type you want to change, and select Properties.
In the General tab, click the Change button.
Choose a program from the list, or click Browse to select an .EXE file on your hard disk.

Method #2 (view a list of file types):

Open Control Panel.
In Control Panel Home, click Programs, and then click Make a file type always open in a specific program.

Or, in the Classic View, open Default Programs and then click Associate a file type or protocol with a program.
Highlight a file type in the list and click Change Program.

Unfortunately, neither method in Vista allows you to choose anything but the default programs, such as the programs listed in your files' context menus. If you want complete control over your file types, use this tool:

Method #3 (File Type Doctor):

Download and install Creative Element Power Tools.
Open the Creative Element Power Tools Control Panel.
Turn on the Edit file type associations option, and click Accept.
Right-click a file of the type you want to change, and select Edit File Type to show this window:

Source"
Guest [Entry]

"Adding Method #4:

Right click on a file of the type you wish to change
Click Open With... (select Choose Default Program... if a sub-menu appears)
Select the application you wish to open this type of file with. You can also click the browse option if Windows doesn't suggest what you want.
Ensure the box labeled Always use the selected program to open this type of file is ticked"
Guest [Entry]

"I didn't think people used .bat any more, switched to .cmd a while ago. Anyway, we are trying to restore default to Adobe Reader for PDFs after installing Acrobat.

Doing exactly what the last guy did and it still doesn't change. I don't know if anyone can see where I made a mistake or just are seeing the same thing, and yes I know how to change it in the GUI, but this is for a mass deployment so keep that to yourselves-

REG ADD ""HKEY_CLASSES_ROOT\Applications\AcroRD32.exe\shell\Read\command"" /v @ /t REG_SZ /d ""\""C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe\"" \""%1\"""" /f
REG ADD ""HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf"" /v ""Application"" /t REG_SZ /d ""AcroRd32.exe"" /f
REG ADD ""HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf\OpenWithList"" /v ""g"" /t REG_SZ /d ""AcroRd32.exe"" /f

ftype ""PDF File""=""C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe"" ""%1""
assoc .pdf=""PDF File"""
Guest [Entry]

"To sum up the above said and having corrected some escape issues in .BAT file (NOT IN CMD) it should look like this:

REG ADD ""HKEY_CLASSES_ROOT\Applications\notepad++.exe\shell\open\command"" /v @ /t REG_SZ /d ""\""D:\\Public\\englishextra\\Notepad++Portable\\notepad++.exe\"" \""%%1\"""" /f
REG ADD ""HKEY_LOCAL_MACHINE\SOFTWARE\Classes\jsfile\DefaultIcon"" /t REG_SZ /d ""D:\Public\englishextra\Notepad++Portable\notepad++.exe,0"" /f
REG ADD ""HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.js"" /v ""Application"" /t REG_SZ /d ""notepad++.exe"" /f
REG ADD ""HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.js\OpenWithList"" /v ""g"" /t REG_SZ /d ""notepad++.exe"" /f

assoc .js=jsfile
ftype jsfile=D:\Public\englishextra\Notepad++Portable\notepad++.exe %%1"