HTML Tidy documentation explains the settings in the files below. Two settings require mention. First, the batch files assume the input files use UTF-8 character encoding. Second, the newline option is set to save files in the Unix / Linux format.
Batch files for individual files can be run on files that also contain script, PHP, ASP, etc. However, the batch files for groups of files assume an HTML file extension.
th.bat - When run, "th filename," runs Tidy on the file.