@echo off
set FOLDER=D:\FOLDER
cd\
set NAS-DRIVE=W:\SERVER_E
W:
cd\
echo ──────────────── (W) 코드 시작
cd "%NAS-DRIVE%\_TEMP_E\_DRAMA" & for /F "delims=" %%i in (%FOLDER%\이름변경REN-드라마.txt) do ren %%i
cd "%NAS-DRIVE%\_TEMP_E\_VARIETY" & for /F "delims=" %%i in (%FOLDER%\이름변경REN-예능.txt) do ren %%i
cd\
for /F "delims=" %%a in (%FOLDER%\이름변경CD-드라마.txt) do cd "%NAS-DRIVE%\(최신드라마)\%%a" & for /F "delims=" %%i in (%FOLDER%\이름변경REN-드라마.txt) do ren %%i & echo ────────────────────[W] %%a & echo.
for /F "delims=" %%a in (%FOLDER%\이름변경CD-예능.txt) do cd "%NAS-DRIVE%\(최신예능TV쇼)\%%a" & for /F "delims=" %%i in (%FOLDER%\이름변경REN-예능.txt) do ren %%i & echo ────────────────────[W] %%a & echo.
set NAS-DRIVE=
echo ──────────────── (W) 코드 끝
cd\
set NAS-DRIVE=Y:\VMW_3TB_E
Y:
cd\
echo ──────────────── (Y) 코드 시작
cd "%NAS-DRIVE%\_TEMP_E\_DRAMA" & for /F "delims=" %%i in (%FOLDER%\이름변경REN-드라마.txt) do ren %%i
cd "%NAS-DRIVE%\_TEMP_E\_VARIETY" & for /F "delims=" %%i in (%FOLDER%\이름변경REN-예능.txt) do ren %%i
cd\
for /F "delims=" %%a in (%FOLDER%\이름변경CD-드라마.txt) do cd "%NAS-DRIVE%\(최신드라마)\%%a" & for /F "delims=" %%i in (%FOLDER%\이름변경REN-드라마.txt) do ren %%i & echo ────────────────────[Y] %%a & echo.
for /F "delims=" %%a in (%FOLDER%\이름변경CD-예능.txt) do cd "%NAS-DRIVE%\(최신예능TV쇼)\%%a" & for /F "delims=" %%i in (%FOLDER%\이름변경REN-예능.txt) do ren %%i & echo ────────────────────[Y] %%a & echo.
set NAS-DRIVE=
echo ──────────────── (Y) 코드 끝
cd\
echo.
echo [END] ────── 자동 이름 변경 (NAS - PC) ──────
echo.
timeout /t 5
exit