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:

 

Macro

Description

Example




$(InputFile)

The full path of the file to be converted

C:\Folder\Filename.abc

$(InputLongPathFile)

The full path of the file to be converted in long path format

\\?\C:\Folder\Filename.abc

$(OutputFile)

The full path for the text conversion

C:\TEMP\flt_ab123cd.tmp

$(InstallFolder)

The progam's installation folder

C:\Program Files\Mythicsoft\FileLocator Pro

 

 

 

Step 2. Copy the XML file into the plugin_cfg folder

 

CustomExtension

 

 

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.


Copyright © 2021 Mythicsoft Ltd. All rights reserved.
Help file version: 9.0

PDF and CHM versions of this help file are available here:
http://mythicsoft.com/filelocatorpro/help