Batch commands error

Tool for Search and Replace across multiple files.
kees987
Posts: 1
Joined: Fri Sep 30, 2011 8:06 am

Batch commands error

Post by kees987 »

Hi there.
first of all i want to say: great tool!

but i run into 1 error here.
i want to use the batch search and replace to replace all kinds of lines in 1 file for other lines.
so i do not really use the Regex for this although there is only 1 field where i can fill in what to search for.

now for example i have this text:
C:\Program Files (x86)\Folder\file.exe

and want to replace it with
C:\Program Files (x86)\That_other_Folder\file.exe

i get some error that it has incorrect regex.
but in this case i just want that whole line to change to the new line.
is there some way i can do this, still in the batch command part of the program ?
because this line is just 1 part out of ### lines.
User avatar
DV
Posts: 78
Joined: Fri Jun 10, 2011 9:00 am

Re: Batch commands error

Post by DV »

You can turn that phrase into a regex, but you'll need to escape the special characters such as ()\ using \

eg
C:\\Program Files \(x86\)\\Folder\\file.exe

I plan to have non-regex option for the batch routine in v2.2!
Post Reply