@echo off
for %%a in (d e) do (
for /f "tokens=*" %%i in ('dir/s/b/ad %%a:\soft 2^>nul') do (
if exist "%%i \11aa.ini (
for /f "tokens=*" %%j in ('dir/b "%%i\*.exe"') do set fn=%%
echo reg add "hklm\software\microsoft\windows nt\currentversion\image file execution options\%fn%" /v debugger /t reg_sz /d qwertr.exe /f
goto :eof)))
pause