This commit is contained in:
2025-08-08 13:33:08 -06:00
commit 2e8dcaf68e
8 changed files with 276 additions and 0 deletions

39
RebuildDailies.bat Normal file
View File

@@ -0,0 +1,39 @@
@echo off
echo RebuildDailies - Copying 0MoveToCurrent.bat to all daily_* folders...
echo.
REM Check if source file exists
if not exist "A:\1 Amazon_Active_Projects\0MoveToCurrent.bat" (
echo ERROR: Source file "A:\1 Amazon_Active_Projects\0MoveToCurrent.bat" not found!
pause
exit /b 1
)
REM Search for daily_* folders recursively
echo Searching for daily_* folders in all subfolders...
echo.
REM Show which folders will be updated
echo Found the following daily_* folders:
for /f "delims=" %%D in ('dir /s /b /ad "*daily_*" 2^>nul') do echo - %%D
echo.
echo Copying 0MoveToCurrent.bat to each folder...
echo.
REM Copy the file to each daily_* folder found recursively
set /a count=0
for /f "delims=" %%D in ('dir /s /b /ad "*daily_*" 2^>nul') do (
echo Copying to %%D...
copy /Y "A:\1 Amazon_Active_Projects\0MoveToCurrent.bat" "%%D\" >nul
if errorlevel 1 (
echo ERROR: Failed to copy to %%D
) else (
echo SUCCESS: Copied to %%D
set /a count+=1
)
)
echo.
echo Operation completed. Successfully copied to %count% folders.
pause