How do I assign an extension e.g. *.ttt to a program with a *.REG Registry file ?

W

Wolfgang Hercker

Assume I have files with a new or already existing extension *.ttt.

Now I want to always open these types of files with a new program e.g. D:\testprgm\myprogram.exe

How can I assign these extension to the program in the registry ?

No, I don't want to do this through WindowsExplorer (Folder Options->File Types) or any other
GUI based program.

After the assignment whenever I click on files with this extension the files should automatically opened
with the mentioned program.

It should be done directly in the Registry resp. with a *.reg file.

Furthermore I want to assign files with NO extension to this program as well.

If I assign this manually to the "Unknown" file type it doesn't work.

Wolfgang
 
R

Ramesh, MS-MVP

Add the new extension via Folder Options (File Types dialog) or via the
registry directly. Then export the appropriate branch to a .REG file, which
inturn can be deployed in other systems.

Creating a File Association:
http://windowssdk.msdn.microsoft.com/en-us/library/ms649713.aspx

How to change file associations in Windows XP:
http://support.microsoft.com/?kbid=307859

Alternately, using Command shell:

Microsoft Windows XP - Ftype:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ftype.mspx?mfr=true

Microsoft Windows XP - Assoc:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/assoc.mspx?mfr=true

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Assume I have files with a new or already existing extension *.ttt.

Now I want to always open these types of files with a new program e.g.
D:\testprgm\myprogram.exe

How can I assign these extension to the program in the registry ?

No, I don't want to do this through WindowsExplorer (Folder Options->File
Types) or any other
GUI based program.

After the assignment whenever I click on files with this extension the files
should automatically opened
with the mentioned program.

It should be done directly in the Registry resp. with a *.reg file.

Furthermore I want to assign files with NO extension to this program as
well.

If I assign this manually to the "Unknown" file type it doesn't work.

Wolfgang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top