@ECHO OFF
SET RW=aaaaa
ECHO Processing .ap files, please wait
FOR /F "delims=" %%I in ('DIR /B /S "%RW%\Content\*.ap"') DO (
ECHO Extracting %%I
7za.exe x "%%I" -ir!RouteProperties.xml -o"%%~dpI" -y > NUL
7za.exe x "%%I" -ir!Scenarios\* -o"%%~dpI" -y > NUL
ECHO Clearing read-only attributes
ATTRIB -R "%%~dpI"\*.* /S > NUL
ECHO.
ECHO.
)
ECHO Finished processing .ap files.


