How-To setup or modify your own file associations

Setting up file associations

When XML:Wrench is installed it only sets up a few simple file associations. XML:Wrench is associated with it's own file-type (.xwp). Also, for some file-types (e.g. .xml,.xsl,.css), right clicking allows you to edit with XML:Wrench

The rest of this topic deals with how to setup your own file associations. You may want to do this, if you want to use XML:Wrench to edit other file-types than those setup automatically by the XML:Wrench install.

To change this you have to edit settings in Windows. This will vary from version to version. The following description should be correct for WindowsNT & Windows98.

Call up the Options dialog. Either click on 'My Computer' or 'Windows Explorer' and then select Options from the View menu. This should display the Options dialog. Select the tabbed page marked 'File types'.

screenshot

Then select the file type you want to modify from the list and click on Edit. Alternatively, use the New Type... button to create a new entry.

screenshot

The actions box will contain one or more entries. The default one, usually Open will be in bold. Select the one you want to modify (or create a new one). You then need to enter the location of the XML:Wrench program into the edit box.

screenshot

The text of the line entered should be:

%PROGRAM_DIR%\xmlwrench.exe "%1"

%PROGAM-DIR% is the location where you installed XML:Wrench this might be something like: 'C:\Program_file\xmlwrench'. When XML:Wrench opens the file it will attempt to assign a file-type based on the extension. You can force a particlur file-type by prefixing the filename with a /t=xxx where xxx is the name of a file type. For example:

%PROGRAM_DIR%\xmlwrench.exe /t=html "%1"

will open the file as an html file regardless of the file extension.