HTML Text Filter (Htmlfltr.exe)

Server-only: This tool is included in the Windows 2000 Server Resource Kit only.


HTML Text Filter is a command-line tool that removes comments and extra white space from HTML files, decreasing browser load time and improving performance. If a directory is specified, HTML Text Filter compresses uncompressed ASP, HTM, and HTML files, recursing to all subdirectories if /S is specified. If a file (or file pattern with wildcard characters) is specified, it compresses all matching files.


note-icon

Note

HTML Text Filter never compresses files that contain the <!--NoCompress--> tag.

HTML Text Filter Syntax

One Stephtmlfltr [/q] [/s] {dir | file}

Where:

/q
Causes HTML Text Filter to run in quiet mode (does not display status on completion).
/s
Compresses files in all sub-directories under the specified directory.
dir
Specifies a directory name and path.
file
Specifies a file name or pattern (for example, default.*).

HTML Text Filter Example

htmlfltr /s c:\web\Mysite

Compresses all .asp, .html, and .htm files in the Mysite directory and all subdirectories.

File Required