@MichaelAnnis wrote:
Get Files in Folder (filter for *.ini) to %Files%
For each %CurrentItem% in %Files%
Read Text from file
Replace text
Write text to file %CurrentItem% "overwrite=yes"
End (For Each)
Good luck!
To extend that to send the summary email:
At the start (before the loop) initialise a text variable, lets call it %emailBody%
inside the loop, either immediately before or immediately after updating the file, use "append to string variable" to add the current item's name, followed by a <br> (you'll find the current item name in the dynamic content window, I forget the exact name for it), replace <br> with \n or some other form of new line character depending on how your email will be formatted.
Then after you've ended the loop, add a new connector to send an email, put the %emailBody% variable in the email body.
A different approach using an array of strings instead of 1 long string:
instead of using a string variable, use an array variable,
Within the loop, for each modified file, add the current item's name to the array
after the end of the loop, send the email, you can use the join function within the email body to return each array element with a given delimiter. This will also allow you to do things such count the array elements so that your email subject could for example say "Updated x files out of a total of y files checked"