回复 3# hepeisheng
未测试:- @echo off
- setlocal enabledelayedexpansion
- for /r /d %%i in (*) do (
- cd /d %%i
- if not exist list.txt if exist *.cue (
- (for %%j in (*.cue) do (
- for /f "tokens=1,2*" %%a in ('type "%%j"') do (
- if "%%a"=="REM" (
- set %%b1=%%c
- ) else if "%%a"=="TRACK" (
- set %%a=%%b
- ) else (
- set %%a=%%~b %%~c
- )
- if defined TITLE (
- if defined DATE1 (
- echo,!PERFORMER!!DATE1!!TITLE:~,-1!
- set TITLE=
- set DATE1=
- ) else (
- echo,!TRACK!. !TITLE!
- set TITLE=
- )
- )
- )
- ))>list.txt
- )
- )
- pause
复制代码
|