以前的一段代码:
- .....
- :choice1 在歌曲列表中查找 foob2000
- set /p "desfname=歌曲列表目标文件(默认:musiclist.txt):"
- if not defined desfname set "desfname=musiclist.txt"
- for /f "tokens=1,2* usebackq delims=[]" %%a in ("%desfname%") do (
- set/p =-<nul>con
- set "_artist=%%~nxa"&call set "_artist=%%_artist:* =%%"
- set/p =\<nul>con
- for /f "tokens=*" %%I in ("%%c") do (
- set/p =^|<nul>con
- if defined Name_%%~nxI (call echo %%Name_%%~nxI%% ---- %%_artist:~,-2%% [%%b] %%I)
- set/p =/<nul>con
- ))>>temp.txt
- goto end
- ...........
复制代码
|