views:

29

answers:

1

I want to add a file type extention called .phtml to the set association page. In this case I want eclipse to automatically open Zend .phtml files

Control Panel\Programs\Default Programs\Set Associations

+2  A: 

I assume you want to do this programmatically.

This information is stored in the Windows Registry, under HKEY_CLASSES_ROOT. You need a key for the extension (.phtml), with the default being a basic descriptor (something like "ZendFile").

Then you need a key for that descriptor ("ZendFile"), with a subkey of "shell", which will have a subkey of "Open", and a subkey of "command". The default for "command" will need to be the command line to execute.

Russ
how do I do second part?
roger rover
Depends on the programming language you are using.
Russ
roger rover
Then you've posted the the wrong forum. This is a programming forum. You can get to this functionality through Windows Explorer.
Russ