@echo off
:MENU
echo.
set /p choice=서버를 선택하세요? [0] 종료 / [1] NAS 서버 / [2] PC 서버 :
echo.
if "%choice%" == "1" goto :NAS
if "%choice%" == "2" goto :PC
if "%choice%" == "0" goto :END
goto MENU
:NAS
echo.
echo ───── NAS ─────
echo.
timeout /t 30
set NEW=V:\0_최신동영상
set NEW-DRAMA=Z:\2_드라마\〔드라마〕 2017
set NEW-TV=X:\4_예능TV쇼
cd\
V:
cd\
cd "%NEW%"
dir /on /b /ad > "%NEW%\list.txt"
type "%NEW%\list.txt"
goto COPY
pause
:PC
echo.
echo ───── PC ─────
echo.
timeout /t 30
set NEW=E:\SERVER_E\0_최신동영상
set NEW-DRAMA=G:\SERVER_H\2_드라마\〔드라마〕 2017
set NEW-TV=F:\SERVER_F\4_예능TV쇼
cd\
E:
cd\
cd "%NEW%"
dir /on /b /ad > "%NEW%\list.txt"
type "%NEW%\list.txt"
goto COPY
pause
:COPY
echo.
echo ───── COPY ─────
echo.
timeout /t 15
echo.
echo ┌──────┐
echo │ 드 라 마 │
echo └──────┘
echo.
for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /MOV /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-DRAMA%\170421_JTBC 맨투맨" "*맨투맨*.mp4"
timeout /t 3
echo.
echo ┌──────┐
echo │ 예 능 │
echo └──────┘
echo.
for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /MOV /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-TV%\♡ 무한도전\무한도전.E500~" "*무한도전*.mp4"
for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /MOV /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-TV%\♡ 백종원의 3대천왕" "*백종원*.mp4"
for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /MOV /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-TV%\신비한TV 서프라이즈" "*서프라이즈*.mp4"
for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /MOV /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-TV%\세상에 나쁜 개는 없다" "*개는 없다*.mp4"
for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /MOV /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-TV%\어쩌다 어른" "*어쩌다*.mp4"
for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /MOV /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-TV%\썰전" "*썰전*.mp4"
timeout /t 3
echo.
echo ┌──────┐
echo │ 교 양 │
echo └──────┘
echo.
timeout /t 3
echo.
echo ┌──────┐
echo │ 영 화 │
echo └──────┘
echo.
timeout /t 10
echo.
echo.
echo.
echo 작업이 완료 되었습니다.
echo.
echo.
pause
set NEW=
set NEW-DRAMA=
set NEW-TV=
goto MENU
:END
exit