Download Here
For help on usage, type TestDuplicate.exe without any parameters, or with -h, -help, /h, /help, or --help.
This program is designed to give a report of "words" that are duplicated in multiple color groups in an IDM wordfile for UltraEdit or UEStudio. It is intended to be configured as a user tool from within UltraEdit in the Advanced menu. This is also intended to replace the TestForDuplicate macro included in Mofi's SyntaxTools macro, with a much faster operation time.
In the Tool Configuration Dialog, Insert a new user tool, and give it the name "TestDuplicate". Give the Command line as the full path to the tool with executable name, followed by "%f", and include the double quotes around %f. On the Options tab, check DOS program and "Save active file". On the Output tab, check "Capture output" and "Output to list box". Also check "No replace" in the Replace selected text with section.
With a wordfile that you wish to test opened as the active file, launch the tool. It will give a report of any duplicates found in the Output Window, with full file name followed by /line#/column# so that the cursor can be positioned at the word in question when you double click on the line in the report. This is quite handy, as it makes editing the wordfile in question to remove the duplicates much easier.
The one thing it doesn't do, which Mofi's macro also does not do, is to determine if there is a "conflict" between substrings when 2 substrings are different but may overlap. And example would be:
- Code: Select all
/C1
** abcd
/C2
** abcde
The "abcde" in /C2 is superseded by the "abcd" in /C1, but neither this tool nor Mofi's macro will check for it.
Discussion
I would like input from anyone who is interested in this tool on whether or not to expand the capabilities of this tool any further.
Possibilities:
1. Automatic removal of identified duplicates via command line option. Now implemented with the -fix option
2. Add the extra coding for "intelligent" checking of substrings to catch substring conflicts as in the above example.
The only way it will modify your files is if you use the -fix option, as described in the program's help.

