I need to find text in a file when I open it with Notepad++.
For instance I need to find the text "ABC". However the true text I need are 2 numbers that follow "ABC". So I have a batch file that uses Notepad++ to open a particular file when I double click it. It needs to find ABC and then look at the 2 digits directly following it and populate a variable with them.
Some files might contain ABC12 while others might contain ABC21, etc.
All I have so far is the following:
%echo off
"C:\Program Files (x86)\Notepad++\notepad++.exe" %1
FIND [/I] "ABC"
It opens the file fine, but does not search. Please help!
Thanks!