I have the following code:
set "string_pdf=<module>PDF-hul</module>"
set string1=Well-Formed and valid
set /a loop100=0
for /f "tokens=*" %%i in ('dir /a-d /b /s %output%') do (
for /f "tokens=3 delims=>/<" %%p in ('find "%string_pdf%" "%%i" && find "%string1%" "%%i" ') do (
echo %%~ni >> %output%\pdf_hul.txt
set /a loop100+=1
)
)
I'm going through all XML's that are located in the %output% folder and trying to find the co-occurrence of Well-Formed and valid and <module>PDF-hul</module> in one xml file. This code works when I'm searching only with one find command for one variable. But when I add the second one I get a syntactical error.
How to find both variables string_pdf and string1 in one xml (aren't in one line)?
&&-->^&^&