Custom Extensions |
Top Previous Next |
While FileLocator Pro can search many popular formats there are many other niche formats that it doesn't know how to convert to text format for searching. However, FileLocator Pro does provide a way to integrate a external programs for converting given formats into text.
Example
Say, for example, a company called ThirdParty has a program that converts files of type .ABC to text, and is run:
"C:\Program Files\ThirdParty\SomeApp.exe" "E:\Files\intro.abc" "E:\Out\intro.txt"
To enable FileLocator Pro to use the program to read .ABC files follow these steps:
Step 1. Create an XML file to add the format
Using an editor, like NotePad, create an XML file using the format shown below, replacing the highlighted entries with the appropriate values, e.g.
<?xml version="1.0"?> <InterpreterConfig xmlns="http://www.mythicsoft.com/FileLocator"> <displayname>ABC</displayname> <uniquename>http://www.mythicsoft.com/abcformat</uniquename> <progid>Extensions.ConvertToTextCommand</progid> <setup>"C:\Program Files\ThirdParty\SomeApp.exe" "$(InputFile)" "$(OutputFile)"</setup> <filetypes>abc</filetypes> <interpretertype>textconverter</interpretertype> <active>no</active> <safemode>no</safemode> <useisfilter>no</useisfilter> <nonreglibrary>extensions.dll</nonreglibrary> </InterpreterConfig>
Save the file, e.g. abc.xml.
Note: The available macros for use in the <setup> element are:
Step 2. Copy the XML file into the plugin_cfg folder
Step 3. Activate the extension
Make sure Office/PDF documents is checked in the Enhanced/PDF documents section of the Options tab.
Step 4. Test the extension
Run a simple search using a small group of test files. |