@echo off
set "x=播放列表汇总"
2>nul (md %x%
for /r %%i in (*) do (
for %%j in ("%%~fi\..") do (
(echo;MPCPLAYLIST
echo;1,type,0
echo;1,filename,%%~fi)>%x%\%%~nxj_%%~ni.mpcpl
)
)
del %x%\影视* %x%\%x%*)
pause
放在"E:\影视"同目录下执行即可。。。
批处理代码如下:(保存为bat文件,放在任意目录运行)
::═════代═══码═══开═══始═════
@echo off&setlocal enabledelayedexpansion
cd /d "E:\影视"
rd /s/q "E:\影视\播放列表汇总">nul 2>nul
for /f "delims=" %%i in ('dir /a-d/b/s *.*') do (
IF /i not "%%~dpi"=="E:\影视\" (
set p=%%~dpi&set p=!p:~,-1!
for /f "delims=" %%a in ("!p!") do set name=E:\影视\%%~nxa_%%~ni.mpcpl
echo MPCPLAYLIST >"!name!"
echo 1,type,0 >>"!name!"
echo 1,filename,%%i >>"!name!"))
md "E:\影视\播放列表汇总" >nul 2>nul
move /y "*.mpcpl" "E:\影视\播放列表汇总\">nul
pause
::Created By escortmnm from VBS团队
::═════代═══码═══结═══束═════