미디어서버

2_Copy 통합 mp4

by 관리자 posted Mar 25, 2017
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

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

@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_드라마\〔방영드라마〕
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=H:\SERVER_H\2_드라마\〔방영드라마〕
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 /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-DRAMA%\2016_드라마 스페셜" "*드라마 스페셜*.mp4"

for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-DRAMA%\170125_KBS 김과장" "*김과장*.mp4"

for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-DRAMA%\170126_SBS 사임당 빛의일기" "*사임당*.mp4"

for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-DRAMA%\170130_MBC 역적-백성을 훔친 도적" "*역적*.mp4"

for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-DRAMA%\170203_tvN 내일 그대와" "*그대와*.mp4"


for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-DRAMA%\170220_SBS 초인가족" "*초인가족*.mp4"

for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-DRAMA%\170224_JTBC 힘쎈여자 도봉순" "*힘쎈여자*.mp4"

for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-DRAMA%\170227_KBS 완벽한 아내" "*완벽한*.mp4"

for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-DRAMA%\170325_OCN 터널" "*터널*.mp4"


timeout /t 3

echo.
echo ┌──────┐
echo │  예    능  │
echo └──────┘
echo.

for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-TV%\♡ 무한도전\무한도전.E500~" "*무한도전*.mp4"

for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-TV%\♡ 백종원의 3대천왕" "*백종원*.mp4"

for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-TV%\세상에 나쁜 개는 없다" "*개는 없다*.mp4"

for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-TV%\신비한TV 서프라이즈" "*서프라이즈*.mp4"


for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-TV%\♧ 시사프로그램" "*그것이*.mp4"

for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-TV%\어쩌다 어른" "*어쩌다*.mp4"

for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-TV%\SBS 스페셜" "*SBS 스페셜*.mp4"

for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-TV%\K팝스타 시즌6 더 라스트 찬스" "*팝스타*.mp4"

for /f "skip=1" %%i in (%NEW%\list.txt) do robocopy /V /NJH /NJS /TEE /LOG+:%DATE%.txt "%NEW%\%%i" "%NEW-TV%\신서유기\신서유기3" "*신서유기*.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