htconvert obj.conf
Htconvert will search the given obj.conf for pfx2dir and document-root directives, then recursively descend the directories mentioned. Each .nsconfig found will be translated into a .htaccess file. The script is non-destructive, so the .nsconfig is left in place, and if there is an existing .htaccess, it will produce a .htaccess.new file, and give a warning. If there is already a .htaccess and a .htaccess.new, the new file will be .htaccess.new.new. Another .new will be repeatedly appended until there is no file already called that.
This script was designed to convert the access control directives from a nsconfig file generated by FrontPage into an htaccess file. It currently only supports the RestrictAccess and RequireAuth directives, and the <Files> wrapper.
If any <Files> other than <Files *> is presented, the script will give a warning and behave as though all files in the directory are to be access controlled.