File Extensions Association

From OS2World.Com Wiki
Jump to navigation Jump to search

On OS/2 and eComStation you can also (like other OSes) associate a file extension to an specific application to open that file.

Alternative 1 - Associating File Types: An Executable Associated to a File Type

Let's suppose we have this program called "PMDLL.EXE" and we want all *.DLL files associated to this program, so when you double click a DLL file you will open it.

One alternative is to grab the "PMDLL.EXE" and do a right-click on it and select "Properties". On the properties you can select "Association" tab and associate PMDLL.EXE with a "File Type" listed there, on this case is "Dynamic Link Library".


There is another alternative, instead of putting the "Association" to the .EXE file, you can put it to the PMDLL "shadow object" on your desktop.


After doing that, we can select a DLL file, go to "Settings" and select its "Type", on this case it is "Dynamic Link Library".

You will notice now that PMDLL.EXE is associated to open that DLL file.

On this picture the "pmdll.exe" shows up because I set the association to the EXE file, and the PMDLL it is also there because I set the association to the shadow too, this is why you see two.

Alternative 2 - Associating File Extension: A Program Shadow Associated to a File Extension

The other alternative that you can use is to associate an specific program (exe file or shadows) to an specific file extension.

On this example I opened the properties of the "shadow" (or shorcut) of PMDLL.EXE that I located on my desktop.

On the lower part of the "Association" tab, you can put "*.DLL" and click the "Add" button to add the file extension to this program.

Now you will see that all file that are *.DLL (on this case) had been assigned to be opened by PMDLL.

Notice also that it does not matter if the file is associated to "Plain Text", because of its .DLL extension it is associated to the program.

Defining the Default Program that opens a File

There is also the case when you have two programs that can open the same file type and you need to decide which one will be the default one to open the file when you double click.

To accomplish this you can use AssoEdit. On that program you can see and set which "File Types" or "File Extensions" are associated to which programs and select the order of the program to be the default one.

On this picture you can select which program will be the default.

Remember that on file extension it can be defined (for example) as *.ICO , *ICO , or even *.*.ICO, so check all the possibilities listed there.