Page 1 of 1

Batch commands error

Posted: Fri Sep 30, 2011 8:12 am
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.

Re: Batch commands error

Posted: Mon Oct 03, 2011 8:41 pm
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!