一路繁花似锦绣前程
失败的越多,成功才越有价值

导航

 

文件根据名称整理至不同文件夹

@echo off
setlocal EnableDelayedExpansion
set "currentDir=%cd%"
for %%a in (*.mp4) do (
  if not exist "%currentDir%\%%~na" (
    mkdir "%currentDir%\%%~na"
  )
  move "%%a" "%currentDir%\%%~na"
)
for %%a in (*.png) do (
  set "filename=%%~na"
  set "filepath=%currentDir%\!filename:~0,19!"
  if not exist "!filepath!" (
    mkdir "!filepath!"
  )
  move "%%a" "!filepath!"
)
echo "*****************"
echo "*** completed ***"
echo "*****************"
pause
posted on 2024-07-13 16:41  一路繁花似锦绣前程  阅读(8)  评论(0编辑  收藏  举报