

I need to implement a batch script that will access a file called kaka.txt and will replace the string DELAY(30*SEC) with DELAY(50*SEC).
This file(kaka.txt) is at about under 100 subfolders. I need this modification to be applied at any kaka.txt file under these subfolders.
Up to now and with the help of other posts I have done this:
=========================================================
echo off
for /R C:\example\ %%G IN (kaka.txt) DO (
call C:\example\BatchSubstitute.bat "DELAY(30*SEC)" DELAY(50*SEC) %%G>new.txt
)
echo
pause
==========================================================
unfortunately this does not work.
The BatchSubtitude.bat is batch file that finds and replace the DELAY(30*SEC) with DELAY(50*SEC) copied from another post of this forum

When I use it without the FOR loop it works but just for one kaka.txt file in one of the subfolders.
The C:\example has 100 subfolders that contain the kaka.txt
Does anybody know what is wrong with my FOR loop?
Thanks
Nikos