Tapatalk

ReplInFiles saved in macro as FindInFiles after macro editing

ReplInFiles saved in macro as FindInFiles after macro editing

1
NewbieNewbie
1

    May 09, 2005#1

    When saving a command like "replace in files something with nothing"

    i.e:

    string:

    ReplInFiles RegExp Recursive OutputWin Unicode "c:\" "*.*" "<my text>" ""

    it becomes (after saving):

    FindInFiles RegExp Recursive OutputWin Unicode "c:\" "*.*" "<my text>"

    UE replaces the "replace function" code with a "find function" code.

    Is there a way to avoid this problem ??? :?

    Thank you beforehand !!!

    6,685587
    Grand MasterGrand Master
    6,685587

      Jun 28, 2005#2

      Hi jmw.fr!

      I'm just writing an email to IDM about some macro issues and found the problem here with your ReplInFiles command. The replace string, an empty string in your example, must be at next line in the macro code and not on the same line. This is documented wrong in help. Also the option OutputWin is wrong because the ReplInFiles command supports instead only Log to log in output window the number of replaces in the modified files instead of showing a short summary message.

      So try this:

      Code: Select all

      ReplInFiles RegExp Recursive Log Unicode "c:\" "*.*" "<my text>"
      ""
      Note: "" is at next line and not on the same line as ReplInFiles. Hope this works, because I have not tried it with Unicode option.

      I use UltraEdit v11.10a+3 and found out that by simply recording a Replace In Files command.

      This syntax with replace string on next line is required for all versions of UltraEdit supporting ReplInFiles command up to UE v14.10 and UES v6.40. Later versions starting with UE v14.20 and UES v9.00 require the replace string on same line as command (or on same line as end of search string in case of a multiline search string).