W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2003

Re: how to apply tidy to a directory or entire website ?

From: Julian Voelcker <asp@tvw.net>
Date: Thu, 03 Jul 2003 17:30:09 +0100
To: html-tidy@w3.org
Message-Id: <VA.0000096f.0085f11c@tvw.net>

On Wed, 2 Jul 2003 15:30:36 +0200,  wrote:
> I would like to know how to apply tidy to all the files of a
> directory, or the entire website. 
> Is it possible ?

Take a look in the archives, I got an answer to this a few months back.

Use one batch file (clean.bat) to run/configure Tidy, like follows:

c:\tools\tidy\tidy.exe -config c:\tools\tidy\InitialCleanUp.tidy -m %1

and then another (startclean.bat) to loop the request like this...

FOR /R c:\serverroot\%1 %%a IN (*.htm*) do c:\tools\tidy\clean.bat "%%a"

I would then 'clean' a site by typing 'startclean.bat siteroot' at a command prompt - with siteroot being the name of the root directory.

HTH

Cheers,

Julian Voelcker
The Virtual World (UK) Limited
Cirencester, United Kingdom
Received on Thursday, 3 July 2003 12:30:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:53 UTC