SortSRS is a fairly esoteric utility. It is an add-on for Funduc Search-Replace. It tidies *.srs script files by sorting, deduping and general tidying. It is only of use to users of the Funduc SR bulk Search Replace Utility. It does not handle the *.srx script files used by the more recent SR business edition which are XML-based. It is only of use to users of the Funduc SR bulk Search Replace Utility. Be careful. Sorting a script may it behave differently since SR applies the search/replaces in the same order they appear in the *.srs script file. Make a backup before using SortSRS in case sorting makes the script stop working. It sorts the search/replace pairs by search string, using a case-insensitive sort, i.e. interleaving upper and lower case. It also sorts and deDups the path items. To convert a script file, type: java.exe -jar C:\com\mindprod\sortsrs\sortsrs.jar myscript.srs The results replace the old file, so you had better make a backup just in case this is not what you want. You can also list several files on the command line: java.exe -jar C:\com\mindprod\sortsrs\sortsrs.jar my.srs C:\myscripts\another.srs DON'T USE WILDCARDS unless you deeply understand how they work. Windows expands them, not sortsrs, and feeds them to sortsrs (or any other program) as a giant list of all the directories and files in the current directory. Sortsrs will thus tend process all the files in your directories, when you just meant to process the files in the current directory. Read up on wildcard in the mindprod.com wildcard entry in the Java glossary. The -s switch makes all subsequent directories searched recursively to include all their subdirectories. e.g. java.exe -jar C:\com\mindprod\sortsrs\sortsrs.jar -s E:\env\srscripts will fix all *.srs files in the E:\env\srscripts directory tree, ignoring other types of files. If you have the jar extension set up as executable, you can abbreviate: C:\com\mindprod\sortsrs\sortsrs.jar . If you have C:\com\mindprod\sortsrs on the path, and have set up PATHEXT to include jar, then you can abbreviate that to: sortsrs.jar . If you have Jet, that abbreviates to sortsrs.exe . You can strip out comments from the scripts with: java.exe -jar C:\com\mindprod\sortsrs\sortsrs.jar -strip -s E:\env\srscripts Favourites are just mini-scripts containing a single search/replace pair, also stored as *.srs files, but stored in a different directory. If you run SortSRS on them, it won't do any harm, and it won't do any good either. Since the contain only one item, they are already sorted. However SortSRS will replace missing lead BOMs, an indicator the file is UTF-8 encoded even on favourites. If this utility is of use to you, possibly the CSVToSRS utility part of the mindprod.com CSV suite may also be of interest. Beware! If you edit *.srs scripts outside of Funduc Search/Replace, or if you generate them programmatically, and you introduce syntax errors, e.g. two [Replace] in a row, when you feed them to SR, it will just crash without any error message. If you are experimenting, keeps lots of backups and intermediate backups, so you can compare working and non-working scripts to see the differences. I wrote this program without documentation of the SRS file format. I just guessed at it by examining examples and doing experiments. I have overlooked something, and my program will not handle that feature correctly. If you suspect something like that has happened, please email me the offending script so I can fix immediately fix it.