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