You are currently reviewing an older revision of this page.
Globally Find and Replace Text in numerous files with the Batch Process Utility
Whether you need to update pieces of text or Tags, using the Batch Processor and the Find/Replace Text tool this can be accomplished. Also, be sure to note the initial Key In string that contains the word SILENT so that the OK Button does not force you to manually interact with each file being processed.
When creating the Command file use these lines:MDL SILENTLOAD FINDREPLACETEXT,CHNGTXT CHANGE DIALOGTEXTFIND DIALOG SEARCHSTRING oldFIND DIALOG REPLACESTRING newCHANGE TEXT ALLFILTERED
Here is the example from a Community Forum:
Sub main
Dim startPoint As MbePoint
Dim point As MbePoint, point2 As MbePoint
' Start a command
MbeSendCommand "MDL KEYIN FINDREPLACETEXT,CHNGTXT CHANGE DIALOGTEXT"
' Send a keyin that can be a command string
MbeSendKeyin "FIND DIALOG PAN True"
MbeSendKeyin "FIND DIALOG ZOOM True"
MbeSendKeyin "FIND DIALOG ZOOMLEVEL 14"
MbeSendKeyin "FIND DIALOG SEARCHSTRING "
MbeSendKeyin "FIND DIALOG SEARCHSTRING Whatever Text"
MbeSendKeyin "FIND DIALOG REPLACESTRING This Text"
MbeSendKeyin "CHANGE TEXT ALLFILTERED"
End Sub