Batch Script: Extract Product Keys from XML Files
setlocal enabledelayedexpansion
set 'inputFolder=%~dp0'
set 'outputFile=output.txt'
for /r '%inputFolder%' %%F in (*.xml) do (
set 'xmlFile=%%~F'
for /f 'tokens=9 delims=</' %%A in ('type '!xmlFile!' ^| findstr /i /c:'
原文地址: https://www.cveoy.top/t/topic/plAr 著作权归作者所有。请勿转载和采集!