以文件名创建目录然后移动的批处理 枚举当前目录下的所有mp4,然后创建同名的目录并将对应文件移动进去。 @echo off for %%i in (*.mp4) do ( mkdir "%%~ni" 2>nul move /y "%%i" "%%~ni\" )