Page 1 of 1

need help

Posted: Thu Sep 01, 2005 1:10 pm
by tobey
hi,

i have thousands of files which contain as good as the same line:

IF EXIST P:\LOCATION\DLF-G\NOW2XP\INSTALL.BAT P:\LOCATION\
DLF-G\NOW2XP\INSTALL.BAT

IF EXIST P:\LOCATION\ABG-B\NOW2XP\INSTALL.BAT P:\LOCATION\
ABG-B\NOW2XP\INSTALL.BAT


IF EXIST P:\LOCATION\MCH-P\NOW2XP\INSTALL.BAT P:\LOCATION\
MCH-P\NOW2XP\INSTALL.BAT

IF EXIST P:\LOCATION\HBG\NOW2XP\INSTALL.BAT P:\LOCATION\HBG\NOW2XP\INSTALL.BA

only these little strings(thick written) are others...

and these lines should be replaced with this line:

IF EXIST P:\WXPINST\PE_INSTALL.BAT P:\WXPINST\PE_INSTALL.BAT

Posted: Fri Sep 02, 2005 7:55 am
by tobey
can nobody help me?

Posted: Fri Sep 02, 2005 5:10 pm
by Abacre
Hi,

Go to Batch replace tab, check on "Use regular expressions".
Put into the grid, search for:
IF EXIST P:\\LOCATION\\.+\\NOW2XP\\INSTALL\.BAT P:\\LOCATION\\.+\\NOW2XP\\INSTALL\.BAT

(note the search for string is one line).

Replace with:
IF EXIST P:\\WXPINST\\PE_INSTALL.BAT P:\\WXPINST\\PE_INSTALL.BAT

That's all I verified it works perfectly.

Posted: Thu Sep 22, 2005 8:18 am
by tobey
thank you very much...

worked fine