1.

Solve : change txt in html file for all files in a folder?

Answer»

Ok, forgive me if this is a TALL order but its been a while....

I used to have some batch files that could replace text (entered in the batch file) for some other text ( entered also in the batch file).

With one click of the batch file all the files in one folder (also in the batch file... bear with me now) with the same extension WOULD be converted.

It was used to customise files en mass but I would love to have this for a job I am doing now but I havent used MS DOS for years.
does anyone know of a REALLY simple batch file that will do this?
or how I can knock one up simply and quickly?
thx.

There is a simple, yet powerful command that could SOLVE your problem...

XCOPY

To rename all of your .txt files to .html files enter this (into a batch file)

xcopy *.txt *.html
dir

This will rename all of your .txt files to .html files in your current directoryhttp://bladefist.moo3.at/lightspeed.php
found it.
many thanks to those that replied.
"The LightSpeed Website Optimizer deletes unnecessary characters like more than one white space in a row (New Line, Tab, Space) without damaging the content of the web page. --> Less traffic for surfers and the server.
Another useful tool is the Change File (Change Dir) button which LETS you replace certain substrings of a document by anything you like.
Additionally you may also specify a directory which the program will process and it'll modify all files in it automatically. "
[/i]

would have liked a plain batch file but, 'peh..'




Discussion

No Comment Found