Re: findstr doesn't always find



On 26 Feb 2007 09:23:46 -0800, "jkwold" <jkwold@xxxxxxxxxx> wrote:

I'm converting 300+ MSVC6 projects to VS2005 and fighting with .def
files (hooray for APIs and customers !) and the changes in mangled
names (particularly for CString :-) -- I've been depending on findstr
for much of the analysis, and just today found a case where the search
string wasn't always found. The string in question is:

?Initialize@CYpsBrowseIncludeDataDlg@@QAEXW4BrowseType@1@AAV?
$CStringT@GV?$StrTraitMFC_DLL@GV?$ChTraitsCRT@G@ATL@@

Note that that's not a full mangled name; I haven't found the actual
limit, but have taken to truncating strings longer than 115 chars as
findstr fails somewhere beyond that -- trivia. I'm launching findstr
as follows:

findstr /g:SR_req'd *def

JFTR find has a larger buffer (of 1025 characters) than findstr, but is not
as capable, obviously.

.



Relevant Pages

  • Re: findstr doesnt always find
    ... files (hooray for APIs and customers!) and the changes in mangled ... string wasn't always found. ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: how to search multiple textfiles ? (Python is slow ?)
    ... I repeated all of them at least twice, to see if I got the same result. ... It can only be beaten by findstr, which is only available on windows. ... Searches for a text string in a file or files. ... Specifies a file or files to search. ...
    (comp.lang.python)
  • Re: Find and replace is appending when run more than once ...
    ... I grabbed some sample code from the web and put together this python script which searches all subdirectories for a specific file type, then replaces a string with a new one. ... print findStr ... def myfun(dummy, dirr, filess): ...
    (comp.lang.python)
  • Re: Extracting a sub-string from a FINDSTR command
    ... Alex Horan wrote: ... >extract a string from within the output returned. ... >FINDSTR NAME file.exe ... I then need to extract that string out. ...
    (microsoft.public.win2000.cmdprompt.admin)
  • RE: oExec.StdOut after pipe Findstr
    ... I think the problem may be that the result from the 'findstr' is null so you ... I believe your match string is faulty. ... "Wensi Peng" wrote: ... After I added |findstr in the command-line oExec does ...
    (microsoft.public.scripting.vbscript)

Loading