Can I disable the results alert?

Find, replace, find in files, replace in files, regular expressions

Can I disable the results alert?

Postby tomw » Wed Nov 15, 2006 4:22 pm

I'm trying to automate a replace in files using the command line and a macro in a batch file, but the "x items replaced in x files" alert after the ReplInFiles command keeps UltraEdit from quitting by itself. Any ideas? Thanks...

Command line:
"C:\Program Files\UltraEdit\uedit32.exe" /M,E,1="V:\location\mymac.MAC/ReplMac"

Macro:
InsertMode
ColumnModeOff
HexOff
UnixReOff
ReplInFiles OutputWin "v:\files\" "*.txt" "TimesNewRomanPSMT"
"Times-Roman "
User avatar
tomw
Newbie
 
Posts: 2
Joined: Wed Nov 15, 2006 12:00 am

Re: Can I disable the results alert?

Postby Mofi » Thu Nov 16, 2006 7:45 am

Replace the wrong recorded "FindInFiles" parameter OutputWin by the "ReplInFiles" parameter Log. Then UltraEdit will create a list of files searched in the output window and no dialog is shown.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4058
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Can I disable the results alert?

Postby tomw » Fri Nov 17, 2006 5:34 pm

Mofi wrote:Replace the wrong recorded "FindInFiles" parameter OutputWin by the "ReplInFiles" parameter Log. Then UltraEdit will create a list of files searched in the output window and no dialog is shown.


Thanks for the help, but it still pops up. My macro now reads:

InsertMode
ColumnModeOff
HexOff
UnixReOff
ReplInFiles Log "v:\files" "*.txt" "TimesNewRomanPSMT"
"Times-Roman "

UltraEdit version 12.20a
User avatar
tomw
Newbie
 
Posts: 2
Joined: Wed Nov 15, 2006 12:00 am

Re: Can I disable the results alert?

Postby Mofi » Sun Nov 19, 2006 1:08 pm

Sorry, I have forgotten my email to IDM about the bugs I found with the commands FindInFiles and ReplInFiles. Here is the for you important part of my bug report email to IDM:

The ReplInFiles parameter Log is simply not working in UE. If a list of changed files is shown in the output window or only a message box with the number of replaces in x files, is not determined by the parameter Log. It is determined by the parameter "List Changed Files" of the "Replace In Files" dialog. If this parameter is actually not checked in the dialog, the ReplInFiles macro command will always show only the small message independent of the parameter Log. If "List Changed Files" parameter is checked in the "Replace In Files" dialog, the macro command will always show the detailed information about the changes in the output window. This is definitively a bug of the ReplInFiles macro command.

The ReplInFiles macro command parameter Unicode is not really working. If a Unicode replace is executed or not does not depend on this parameter, it depends on the current "Unicode Search" option in the "Find/Replace In Files" dialogs. So if a macro with the command FindInFiles or ReplInFiles should be executed, always the current state of the "Unicode Search" option in the "Find/Replace In Files" dialogs must be set as needed by executing a find in files via dialog.


Maybe free XCHANG32.EXE from Clay's Utilities is more helpful for you in this case.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4058
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Find/Replace/Regular Expressions