@echo off
E:
cd\
cd\SERVER_E\0_최신동영상
cls
echo.
echo 대상경로 : E:\SERVER_E\0_최신동영상
echo.
set /p DATE_S="시작 저번주 금요일(예:170101) 입력하세요 (시작일) : "
echo.
set /p DATE_E="종료 이번주 목요일(예:170108) 입력하세요 (종료일) : "
md "E:\SERVER_E\0_최신동영상\%DATE_S%~%DATE_E%
set FOLDER=%DATE_S%~%DATE_E%
echo.
echo.
echo ──────────────────────────
echo.
echo 기간 : %DATE_S%~%DATE_E%
echo.
echo ──────────────────────────
echo.
echo 생성된 폴더 : %FOLDER%
echo.
echo ──────────────────────────
echo.
echo.
timeout /t 30
move /y "E:\SERVER_E\《최신예능TV쇼》\*%DATE_S%*.*" "E:\SERVER_E\0_최신동영상\%FOLDER%"
move /y "E:\SERVER_E\《최신드라마》\*%DATE_S%*.*" "E:\SERVER_E\0_최신동영상\%FOLDER%"
set /a DATE_S+=1
move /y "E:\SERVER_E\《최신예능TV쇼》\*%DATE_S%*.*" "E:\SERVER_E\0_최신동영상\%FOLDER%"
move /y "E:\SERVER_E\《최신드라마》\*%DATE_S%*.*" "E:\SERVER_E\0_최신동영상\%FOLDER%"
set /a DATE_S+=1
move /y "E:\SERVER_E\《최신예능TV쇼》\*%DATE_S%*.*" "E:\SERVER_E\0_최신동영상\%FOLDER%"
move /y "E:\SERVER_E\《최신드라마》\*%DATE_S%*.*" "E:\SERVER_E\0_최신동영상\%FOLDER%"
set /a DATE_S+=1
move /y "E:\SERVER_E\《최신예능TV쇼》\*%DATE_S%*.*" "E:\SERVER_E\0_최신동영상\%FOLDER%"
move /y "E:\SERVER_E\《최신드라마》\*%DATE_S%*.*" "E:\SERVER_E\0_최신동영상\%FOLDER%"
set /a DATE_S+=1
move /y "E:\SERVER_E\《최신예능TV쇼》\*%DATE_S%*.*" "E:\SERVER_E\0_최신동영상\%FOLDER%"
move /y "E:\SERVER_E\《최신드라마》\*%DATE_S%*.*" "E:\SERVER_E\0_최신동영상\%FOLDER%"
set /a DATE_S+=1
move /y "E:\SERVER_E\《최신예능TV쇼》\*%DATE_S%*.*" "E:\SERVER_E\0_최신동영상\%FOLDER%"
move /y "E:\SERVER_E\《최신드라마》\*%DATE_S%*.*" "E:\SERVER_E\0_최신동영상\%FOLDER%"
move /y "E:\SERVER_E\《최신예능TV쇼》\*%DATE_E%*.*" "E:\SERVER_E\0_최신동영상\%FOLDER%"
move /y "E:\SERVER_E\《최신드라마》\*%DATE_E%*.*" "E:\SERVER_E\0_최신동영상\%FOLDER%"
pause
exit