Have you considered using Perl for this task?
See system, File::Find or File::Glob::bsd_glob.
Also, you will need to learn about how files work in general. It is unwise to try to write to a file of the same name as a file you are trying to read from.
In reply to Re: OT: To make changes in same file in subdirectory in folders by using xslt in Batch file
by Corion
in thread OT: To make changes in same file in subdirectory in folders by using xslt in Batch file
by codewalker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |