repath RebuildDailies
This commit is contained in:
@@ -3,8 +3,8 @@ echo RebuildDailies - Copying 0MoveToCurrent.bat to all daily_* folders...
|
|||||||
echo.
|
echo.
|
||||||
|
|
||||||
REM Check if source file exists
|
REM Check if source file exists
|
||||||
if not exist "A:\1 Amazon_Active_Projects\0MoveToCurrent.bat" (
|
if not exist "A:\1 Amazon_Active_Projects\3 ProjectStructure\scripts_old\0MoveToCurrent.bat" (
|
||||||
echo ERROR: Source file "A:\1 Amazon_Active_Projects\0MoveToCurrent.bat" not found!
|
echo ERROR: Source file "A:\1 Amazon_Active_Projects\3 ProjectStructure\scripts_old\0MoveToCurrent.bat" not found!
|
||||||
pause
|
pause
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
@@ -25,7 +25,7 @@ REM Copy the file to each daily_* folder found recursively
|
|||||||
set /a count=0
|
set /a count=0
|
||||||
for /f "delims=" %%D in ('dir /s /b /ad "*daily_*" 2^>nul') do (
|
for /f "delims=" %%D in ('dir /s /b /ad "*daily_*" 2^>nul') do (
|
||||||
echo Copying to %%D...
|
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 (
|
if errorlevel 1 (
|
||||||
echo ERROR: Failed to copy to %%D
|
echo ERROR: Failed to copy to %%D
|
||||||
) else (
|
) else (
|
||||||
|
|||||||
Reference in New Issue
Block a user