Fix REM-on-closing-paren error, use SKIP flag pattern instead

This commit is contained in:
blance
2026-04-23 21:40:13 -05:00
parent 85391a1376
commit 36aadff307
+6 -5
View File
@@ -24,10 +24,12 @@ echo.
REM === LOOP THROUGH ALL SUBFOLDERS === REM === LOOP THROUGH ALL SUBFOLDERS ===
for /r "%ROOT%" %%d in (.) do ( for /r "%ROOT%" %%d in (.) do (
REM Skip any folder whose path contains "PT STMT" or "archive" set "SKIP=0"
echo %%d | findstr /i /c:"PT STMT" /c:"archive" >nul
if errorlevel 1 (
echo %%d | findstr /i /c:"PT STMT" /c:"archive" >nul
if not errorlevel 1 set "SKIP=1"
if "!SKIP!"=="0" (
if exist "%%d\export.txt" ( if exist "%%d\export.txt" (
echo Found: %%d echo Found: %%d
@@ -52,8 +54,7 @@ for /r "%ROOT%" %%d in (.) do (
echo. echo.
popd popd
) )
)
) REM end skip PT STMT check
) )
echo Done. echo Done.