Do you want to compare two INI files, for example uedit32.ini from a previous version with an updated or just created new uedit32.ini or uedit64.ini?
Yes, then you could have a problem because the lines in an INI file are often not sorted and even whole groups are stored in the INI files on different positions. That makes it nearly impossible to compare two different INIs of an application.
Or have you exported a registry key with all its subkeys from two different computers, or from a program before installing a new version and after running the new program version, and want to compare the REG files now?
Well, then you have often the same problem as with comparing INI files, the lines in the *.reg files are not in any useful order for comparison.
Here is the solution for you: specialfilesorts.zip.
This ZIP file contains an UltraEdit/UEStudio macro file with mainly 3 macros:
Please read the lines at top of the text file with file extension UEM and also the comment lines at top of the macro you want to use before you load the macro file and run one of the macros. They contain important information.
ATTENTION!
Never run the macro for sorting an INI file on the INI file currently used by a running application. Always make a copy of the INI file while no instance of the program is running and run the macro on this copy.
For a faster solution using an UltraEdit script for sorting INI and REG files see RegIniFileSort - Script for smart sorting REG and INI files.
DISCLAIMER
THE MACRO SET IN THE PACKAGE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, STATUTORY OR OTHERWISE, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO USE, RESULTS AND PERFORMANCE OF THE MACRO SET IS ASSUMED BY YOU AND IF THE MACRO SET SHOULD PROVE TO BE DEFECTIVE, YOU ASSUME THE ENTIRE COST OF ALL NECESSARY SERVICING, REPAIR OR OTHER REMEDIATION. UNDER NO CIRCUMSTANCES, CAN THE AUTHOR BE HELD RESPONSIBLE FOR ANY DAMAGE CAUSED IN ANY USUAL, SPECIAL, OR ACCIDENTAL WAY OR BY THE MACRO SET.
FEEDBACK
If you detect a problem with one of the macros, find a spelling mistake in the comments, have a question or a suggestion, or just want to contribute something, please post a reply here.
HISTORY
2009-12-29:
Updated macro Sort UE/UES INI to special sort also Tool ID[0-9]+= in section [Tools] of UltraEdit/UEStudio INI files.
2011-07-05:
Updated all 3 macros. The macros Sort INI File and Sort REG File have been improved for a better result on sorting registry files with special keys. And in macro Sort UE/UES INI a small issue has been fixed. For details see my second post below.
2012-04-21:
The macros Sort INI File and Sort REG File have been improved once again for a better result on sorting registry files with special keys. For details see my post below from 2012-04-24.
Further I speed up these 2 macros by using a new method for replicating a registry value name respectively group / registry key name on all lines below which belong to the registry value respectively group / registry key. For details read top of macro source code file SpecialFileSorts.uem.
For UltraEdit prior v13.00 alternate versions of the macros Sort INI File and Sort REG File are added which work better on large registry files than the faster new versions of the macros. For small files like INI files with just 100 KB or less the faster standard macros can be used also by UltraEdit prior v13.00.
2013-07-09:
The macro Sort UE/UES INI improved slightly by adding special sort support for setting Script Init Directory.
Yes, then you could have a problem because the lines in an INI file are often not sorted and even whole groups are stored in the INI files on different positions. That makes it nearly impossible to compare two different INIs of an application.
Or have you exported a registry key with all its subkeys from two different computers, or from a program before installing a new version and after running the new program version, and want to compare the REG files now?
Well, then you have often the same problem as with comparing INI files, the lines in the *.reg files are not in any useful order for comparison.
Here is the solution for you: specialfilesorts.zip.
This ZIP file contains an UltraEdit/UEStudio macro file with mainly 3 macros:
- Sort INI File
This macro is the default macro after loading the macro file. It sorts INI files by sorting the lines of a group not case sensitive, but numeric independent where a number exists in a setting name. Additionally the groups are also sorted alphabetically and numeric in the INI file. It can be used also for files with a different extension, but using the structure of INI files like *.prj and *.pui files.
- Sort REG File
This macro is similar to the macro for sorting INI files. It is for sorting the content of Windows registry files (*.reg). Supported are registry files version 4 in ASCII/ANSI (first line is REGEDIT4) and version 5 in Unicode with encoding UTF-16 LE (first line is Windows Registry Editor Version 5.00).
- Sort UE/UES INI
This is a special add-on for macro Sort INI File. It is designed to sort INI files of UltraEdit (default: uedit32.ini) and UEStudio (default: uestudio.ini) using macro Sort INI File and then move the main group [Settings] to top of the file and sort the groups [Tools] and [Scripting] based on tool/script number instead of the names of the settings.
Please read the lines at top of the text file with file extension UEM and also the comment lines at top of the macro you want to use before you load the macro file and run one of the macros. They contain important information.
ATTENTION!
Never run the macro for sorting an INI file on the INI file currently used by a running application. Always make a copy of the INI file while no instance of the program is running and run the macro on this copy.
For a faster solution using an UltraEdit script for sorting INI and REG files see RegIniFileSort - Script for smart sorting REG and INI files.
DISCLAIMER
THE MACRO SET IN THE PACKAGE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, STATUTORY OR OTHERWISE, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO USE, RESULTS AND PERFORMANCE OF THE MACRO SET IS ASSUMED BY YOU AND IF THE MACRO SET SHOULD PROVE TO BE DEFECTIVE, YOU ASSUME THE ENTIRE COST OF ALL NECESSARY SERVICING, REPAIR OR OTHER REMEDIATION. UNDER NO CIRCUMSTANCES, CAN THE AUTHOR BE HELD RESPONSIBLE FOR ANY DAMAGE CAUSED IN ANY USUAL, SPECIAL, OR ACCIDENTAL WAY OR BY THE MACRO SET.
FEEDBACK
If you detect a problem with one of the macros, find a spelling mistake in the comments, have a question or a suggestion, or just want to contribute something, please post a reply here.
HISTORY
2009-12-29:
Updated macro Sort UE/UES INI to special sort also Tool ID[0-9]+= in section [Tools] of UltraEdit/UEStudio INI files.
2011-07-05:
Updated all 3 macros. The macros Sort INI File and Sort REG File have been improved for a better result on sorting registry files with special keys. And in macro Sort UE/UES INI a small issue has been fixed. For details see my second post below.
2012-04-21:
The macros Sort INI File and Sort REG File have been improved once again for a better result on sorting registry files with special keys. For details see my post below from 2012-04-24.
Further I speed up these 2 macros by using a new method for replicating a registry value name respectively group / registry key name on all lines below which belong to the registry value respectively group / registry key. For details read top of macro source code file SpecialFileSorts.uem.
For UltraEdit prior v13.00 alternate versions of the macros Sort INI File and Sort REG File are added which work better on large registry files than the faster new versions of the macros. For small files like INI files with just 100 KB or less the faster standard macros can be used also by UltraEdit prior v13.00.
2013-07-09:
The macro Sort UE/UES INI improved slightly by adding special sort support for setting Script Init Directory.