[Issue] MC.Utils.FindAndReplace and OVERWRITE param

Started by Jungle, December 08, 2022, 14:05:12

Previous topic - Next topic

Jungle

I have the following UDC:

MC.Utils.FindAndReplace REPLACEALL MODE="Many" FIND="fff\nddd" REPLACEWITH="zzz\naaa" FILE="d:\\temp\\1.txt" TARGET="*_new.*" SILENT OVERWRITE

It works if target file doesn't exist and doesn't work otherwise


UPD. It seems that TARGET param doesn't support direct file names. I.e. if TARGET="d:\\temp\\1_new.txt" it doesn't work. Mask works OK.