freeware

Threads Posts Archives


<< Previous Thread << Previous Post Topic 16376 of 18074
Posts 5 of 10
Next Post >> Next Thread >>

Re: Just been looking for the opposite of a file renamer...


de B. R. 'BeAr' Ederson 05/19/2006 07:06



On Thu, 18 May 2006 09:41:50 +0200, Michel Firholz wrote:

> i have just been looking for the opposite of a file renamer:

Most programs do quite the opposite of a file renamer; i.e.: they
don't rename programs... ;-)

> I have got a lot of xxxx.html files from an old website and want to replace
> the *content* of these files with a standard html code.
> Have you heard of a (possibly freeware) program to do that magic?

On command line you could execute:

for /r %f in (*.htm) do copy /y good.htm %f

The same from a batch file:

for /r %%f in (*.htm) do copy /y good.htm %%f

This will replace all html files of the current directory and all
subdirectories (note the /r switch) with your nice good.htm file.
Use path strings if needed and use a more strict syntax for the
search filter, if you only need to replace certain files (like
sub??_?.htm).

If you only need to replace part of the files, the search&replace
programs already mentioned are the way to go.

HTH.
BeAr
--
===========================================================================
= What do you mean with: "Perfection is always an illusion"? =
===============================================================--(Oops!)===



IrfanView - video playback aspect ratio? Terry Pinnell
  Just been looking for the opposite of a file renamer... Michel Firholz
    Re: Just been looking for the opposite of a file renamer... B. R. 'BeAr' Ederson
      Re: Just been looking for the opposite of a file renamer... Michel Firholz
|    Re: Just been looking for the opposite of a file renamer... B. R. 'BeAr' Ederson
    Re: Just been looking for the opposite of a file renamer... Susan Bugher
      Re: Just been looking for the opposite of a file renamer... P. Frex
    Re: Just been looking for the opposite of a file renamer... Ron May
      Re: Just been looking for the opposite of a file renamer... Michel Firholz
        Re: Just been looking for the opposite of a file renamer... Ron May
 
freeware