미디어서버

날자별 파일별 묶음 배치파일 소스

by 관리자 posted Feb 22, 2017
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄


F:
cd\
cd\SERVER_F\0_최신동영상

cls
echo.
echo 대상경로 : F:\SERVER_F\0_최신동영상
echo.
set /p DATE_S="시작 저번주 금요일(예:170101) 입력하세요 (시작일) : "
echo.
set /p DATE_E="종료 이번주 목요일(예:170108) 입력하세요 (종료일) : "

md "F:\SERVER_F\0_최신동영상\%DATE_S%~%DATE_E%

set FOLDER=%DATE_S%~%DATE_E%

move /y "F:\SERVER_F\0_최신동영상\《최신예능TV쇼》\*%DATE_S%*.*" "F:\SERVER_F\0_최신동영상\%FOLDER%"
move /y "F:\SERVER_F\0_최신동영상\《최신드라마》\*%DATE_S%*.*" "F:\SERVER_F\0_최신동영상\%FOLDER%"

set /a DATE_S+=1

move /y "F:\SERVER_F\0_최신동영상\《최신예능TV쇼》\*%DATE_S%*.*" "F:\SERVER_F\0_최신동영상\%FOLDER%"
move /y "F:\SERVER_F\0_최신동영상\《최신드라마》\*%DATE_S%*.*" "F:\SERVER_F\0_최신동영상\%FOLDER%"

set /a DATE_S+=1

move /y "F:\SERVER_F\0_최신동영상\《최신예능TV쇼》\*%DATE_S%*.*" "F:\SERVER_F\0_최신동영상\%FOLDER%"
move /y "F:\SERVER_F\0_최신동영상\《최신드라마》\*%DATE_S%*.*" "F:\SERVER_F\0_최신동영상\%FOLDER%"

set /a DATE_S+=1

move /y "F:\SERVER_F\0_최신동영상\《최신예능TV쇼》\*%DATE_S%*.*" "F:\SERVER_F\0_최신동영상\%FOLDER%"
move /y "F:\SERVER_F\0_최신동영상\《최신드라마》\*%DATE_S%*.*" "F:\SERVER_F\0_최신동영상\%FOLDER%"

set /a DATE_S+=1

move /y "F:\SERVER_F\0_최신동영상\《최신예능TV쇼》\*%DATE_S%*.*" "F:\SERVER_F\0_최신동영상\%FOLDER%"
move /y "F:\SERVER_F\0_최신동영상\《최신드라마》\*%DATE_S%*.*" "F:\SERVER_F\0_최신동영상\%FOLDER%"

set /a DATE_S+=1

move /y "F:\SERVER_F\0_최신동영상\《최신예능TV쇼》\*%DATE_S%*.*" "F:\SERVER_F\0_최신동영상\%FOLDER%"
move /y "F:\SERVER_F\0_최신동영상\《최신드라마》\*%DATE_S%*.*" "F:\SERVER_F\0_최신동영상\%FOLDER%"


move /y "F:\SERVER_F\0_최신동영상\《최신예능TV쇼》\*%DATE_E%*.*" "F:\SERVER_F\0_최신동영상\%FOLDER%"
move /y "F:\SERVER_F\0_최신동영상\《최신드라마》\*%DATE_E%*.*" "F:\SERVER_F\0_최신동영상\%FOLDER%"

pause

exit