@echo off
set "x2=%userprofile%\documents\WERfiles"
echo. & echo. & echo. & echo. & echo.
echo. RUNNING QUERY. . . Please wait
echo. RUNNING QUERY. . . Please wait
echo. RUNNING QUERY. . . Please wait
if not exist "%x2%" md "%x2%"
dir "%programdata%\Microsoft\Windows\WER" /A /O:D /S /A /X >"%x2%\$WERout1"
dir "%programdata%\Microsoft\Windows\WER" /a /s /b >"%x2%\$WERout2"
where /r c:\ /f /t *.wer >"%x2%\$WERout3_where" >"%x2%\$WERout3_where"
dir "%userprofile%\AppData\Local\Microsoft\Windows\WER" /A /O:D /S /A /X >"%x2%\$WERout4_user"
dir "%userprofile%\AppData\Local\Microsoft\Windows\WER" /a /s /b >"%x2%\$WERout5_user"
exit