RE: wildcards with html-tidy/DOS

If you're doing this from a console, you'll need to use the DOS for ... in
command. From a prompt, type "for /?" to get more information. You might
want to dump to a file for ease of reading, printing, etc. "for /? >
c:\for.txt"

You may also want to investigate the use of Windows Script Host to automate
Tidy. More information available from the following URL: 

  http://msdn.microsoft.com/scripting/windowshost/

WSH allows the use of VBScript or JScript (as well as other Active Scripting
languages) to write OS-level processing scripts. 

cheers,
~stuart 

-----Original Message-----
From: Ari Davidow [mailto:ari@ivritype.com]
Sent: Monday, January 24, 2000 11:04 AM
To: html-tidy@w3.org
Subject: wildcards with html-tidy/DOS


I hope this is the right place to ask this question.

I am trying to run html-tidy on an NT machine (actually, I'd love to run it
on a solaris box, but haven't succeeded in downloading that version).

What I =want= to do, is to process the files such that they are written to a
new directory, something like

html-tidy in/*.txt >out/*.txt

This is not working. I can redirect single files
   html-tidy in/foo.txt >out/foo.txt

but not wildcards.

Beyond that, as may be evinced from the non-html file ending, what I'm
=really= trying to do with this group of files is to process some text
files that contain html, but which are not, in and of themselves html.
In an ideal world, this would mean that I'd have a way to suppress the
html header and footer, but I can find no way to do so. Is there anything
to be done?

ari


Ari Davidow
ari@ivritype.com
http://www.ivritype.com/

Received on Monday, 24 January 2000 14:47:47 UTC