repath RebuildDailies
This commit is contained in:
@@ -3,8 +3,8 @@ 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!
|
||||
if not exist "A:\1 Amazon_Active_Projects\3 ProjectStructure\scripts_old\0MoveToCurrent.bat" (
|
||||
echo ERROR: Source file "A:\1 Amazon_Active_Projects\3 ProjectStructure\scripts_old\0MoveToCurrent.bat" not found!
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
@@ -25,7 +25,7 @@ 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
|
||||
copy /Y "A:\1 Amazon_Active_Projects\3 ProjectStructure\scripts_old\0MoveToCurrent.bat" "%%D\" >nul
|
||||
if errorlevel 1 (
|
||||
echo ERROR: Failed to copy to %%D
|
||||
) else (
|
||||
|
||||
Reference in New Issue
Block a user