move the files from departure to destination 0.0.8.bat

박정훈·2022년 4월 21일
0

rem rem 1 from Desktop to Destination
rem setlocal
rem set username=박 정 훈
rem set destination=sorted by extension
rem cd "C:\Users\%username%\Desktop"
rem for %%i in (.) do if not "%~nx0"=="%%~nxi" (
rem if not exist "%%~xi\" md "%%~xi"
rem move "%%i" "%%~xi"
rem )
rem
rem
rem
rem rem 1.1
rem setlocal
rem set username=박 정 훈
rem set destination=sorted by extension
rem cd "C:\Users\%username%\Desktop"
rem mkdir "%destination%"
rem
rem
rem rem 1.2
rem setlocal
rem set username=박 정 훈
rem set destination=sorted by extension
rem cd "C:\Users\%username%\Desktop"
rem for /d %%i in (.) do move "%%i" "%destination%"
rem
rem
rem rem 1.3
rem setlocal
rem set username=박 정 훈
rem set destination=sorted by extension
rem cd "C:\Users\%username%\Desktop"
rem for /f "delims=" %%i in ('Powershell.exe get-date -Format 'yyyy MM dd HH mm'') do ren "%destination%" "%destination% - %%i"
rem
rem
rem
rem rem 1.4
rem setlocal
rem set username=박 정 훈
rem set destination=C:\Users\박 정 훈\Desktop\Destination
rem cd "C:\Users\%username%\Desktop"
rem mkdir jhptemp
rem for /d %%i in ("sorted by extension
") do move "%%i" "jhptemp"
rem move "jhptemp" "%destination%"
rem cd "%destination%"
rem for /f "delims=" %%i in ('Powershell.exe get-date -Format 'yyyy MM dd HH mm'') do set yyyymmddhhmm=%%i
rem ren "jhptemp" "%yyyymmddhhmm%"
rem
rem

rem 2
setlocal
set departure=C:\Users\박 정 훈\Desktop\departure
set destination=C:\Users\박 정 훈\Desktop\destination
cd "%departure%"
for /f "delims=" %%i in ('Powershell.exe get-date -Format 'yyyy MM dd HH mm'') do set yyyymmddhhmm=%%i
for /r %%i in (.) do ren "%%i" "%%~ni - %yyyymmddhhmm%%%~xi"
for /r %%i in (.) do move "%%i" "%destination%"
for /f "usebackq delims=" %%i in ("dir /s /b /ad | sort /r") do rd "%%i" 2>NUL
cd "%destination%"
for %%i in (.) do if not "%~nx0"=="%%~nxi" (
if not exist "%%~xi\" md "%%~xi"
move "%%i" "%%~xi"
)
mkdir "sorted by extension"
for /d %%i in (.*) do move "%%i" "sorted by extension"
mkdir "jhptemp"
move "sorted by extension" "jhptemp"
ren "jhptemp" "%yyyymmddhhmm%"

rem
rem
rem rem 2, need to rewrite
rem rem setlocal
rem rem set destination = C:\Users\박 정 훈\Desktop\destination
rem rem cd %%destinaiton%%
rem rem for /r %%i in (.) do ren "%%i" "%destination%"
rem
rem
rem rem 3 모든 파일에 날짜를 지우기
rem
rem
rem
rem
rem
rem rem ip 변경
rem netsh -c int ip set address name="로컬 영역 연결" source=static addr=11.11.11.11 mask=255.255.255.0 gateway=11.11.11.1 gwmetric=0
rem
rem
rem rem 자동IP 변경
rem netsh -c int ip set address name="로컬 영역 연결" source=dhcp
rem
rem
rem rem DNS 변경
rem netsh -c int ip set dns name="로컬 영역 연결" source=static addr=111.111.111.11 register=PRIMARY
rem
rem
rem
rem rem 자동DNS 변경
rem netsh -c int ip set dns name="로컬 영역 연결" source=dhcp
rem

profile
산책과 코드가 좋아요

0개의 댓글