|
kich
中级用户
  
积分 397
发帖 168
注册 2006-10-8
状态 离线
|
『楼 主』:
请问如何用批处理创建MP3播放列表?(Winamp)已解决
使用 LLM 解释/回答一下
如题,先给出假设吧,有这样一个文件夹,"1983.Kill 'EM All",里面有
1.Hit The Lights.mp3
2.The Four HorseMen.mp3
3.Motorbreath.mp3
4.Jump In The File.mp3
5.(Anesthesia)-Pulling Teeth.mp3
6.Whiplash.mp3
7.Phantom Lord.mp3
8.No Remorse.mp3
9.seek & destroy.mp3
10.Metal Militia.mp3
这些MP3.
请问如何用批处理创建m3u播放列表
比如:"00.Playlist.m3u"
里面的内容也很单纯:
1.Hit The Lights.mp3
2.The Four HorseMen.mp3
3.Motorbreath.mp3
4.Jump In The File.mp3
5.(Anesthesia)-Pulling Teeth.mp3
6.Whiplash.mp3
7.Phantom Lord.mp3
8.No Remorse.mp3
9.seek & destroy.mp3
10.Metal Militia.mp3
怎么做到???
PS:我想这个播放列表的制作,就是提取文件夹下所以后缀名是MP3的文件名吧.
再:我这个文件下面还有图片,所以,单纯用提取全部文件名,会把图片名也放到批处理命令里去的,多余!!!
等!!! <img src="images/smilies/face-sad.png" align="absmiddle" border="0">
Last edited by kich on 2006-12-17 at 02:51 AM ]
As the title says, first give the assumption. There is such a folder, "1983.Kill 'EM All", which has
1.Hit The Lights.mp3
2.The Four HorseMen.mp3
3.Motorbreath.mp3
4.Jump In The File.mp3
5.(Anesthesia)-Pulling Teeth.mp3
6.Whiplash.mp3
7.Phantom Lord.mp3
8.No Remorse.mp3
9.seek & destroy.mp3
10.Metal Militia.mp3
These MP3s.
How to create an m3u playlist with batch processing
For example: "00.Playlist.m3u"
The content inside is also very simple:
1.Hit The Lights.mp3
2.The Four HorseMen.mp3
3.Motorbreath.mp3
4.Jump In The File.mp3
5.(Anesthesia)-Pulling Teeth.mp3
6.Whiplash.mp3
7.Phantom Lord.mp3
8.No Remorse.mp3
9.seek & destroy.mp3
10.Metal Militia.mp3
How to do it???
PS: I think the production of this playlist is to extract all the file names with the MP3 suffix in the folder.
Again: There are pictures under my this file, so simply extracting all file names will put the picture names into the batch command, which is redundant!!!
Wait!!! :(
Last edited by kich on 2006-12-17 at 02:51 AM ]
|
|
2006-12-15 23:50 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
在WinAMP里保存一个m3u不就明白了么
Isn't it clear by saving an m3u in WinAMP?
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2006-12-16 00:56 |
|
|
kich
中级用户
  
积分 397
发帖 168
注册 2006-10-8
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
但是我每次想做M3U的时候,首要先打开Winamp,然后再把所有歌曲拖进入,再然后保存,真的很麻烦.所以,我就想做一个批处理,直接双击就可以做好,这样多方便!!
我是新手,所以,不会读取文件夹内后缀为MP3的文件名,望高手指导!!
But every time I want to make an M3U, I first have to open Winamp, then drag all the songs in, and then save it. It's really cumbersome. So, I want to make a batch file that I can just double-click to do it, which would be so convenient!!
I'm a newbie, so I don't know how to read the filenames with the MP3 extension in the folder. Hope an expert can guide me!!
|
|
2006-12-16 04:00 |
|
|
a9319751
中级用户
  
积分 439
发帖 170
注册 2006-1-9
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
for /r "c:\mp3" %%i in (*.mp3) do echo %%~fnxi >> Playlist.m3u
Last edited by a9319751 on 2006-12-16 at 06:01 AM ]
for /r "c:\mp3" %%i in (*.mp3) do echo %%~fnxi >> Playlist.m3u
Last edited by a9319751 on 2006-12-16 at 06:01 AM ]
|

bat c c++ |
|
2006-12-16 06:00 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
保存个.m3u再echo个就好了,格式不要弄错就是了
Just save an .m3u and then echo it, just make sure the format is correct.
|
|
2006-12-16 09:46 |
|
|
kich
中级用户
  
积分 397
发帖 168
注册 2006-10-8
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
看不大明白,我是新手上路啊!!!
是想把BAT文件放在文件夹下,然后双击即可生成列表文件!
多好!!
I can't understand it very well. I'm a beginner!!!
I want to put the BAT file in the folder and then double-click to generate the list file!
How great!
|
|
2006-12-16 14:23 |
|
|
kich
中级用户
  
积分 397
发帖 168
注册 2006-10-8
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
首先谢谢4楼的,按照您的提示,
我用了以下代码,然后放在MP3文件夹下:
for /r %%i in (*.mp3) do echo %%~fnxi >> Playlist.m3u
然后执行,但是出来的列表也点不尽人意,因为它包含了绝对地址,比如说
F:\1983.Kill 'EM All\1.Hit The Lights.mp3
F:\1983.Kill 'EM All\2.The Four HorseMen.mp3
.........
但我要是想得到这样的应该怎么做呢??
1.Hit The Lights.mp3
2.The Four HorseMen.mp3
.........
PS:我真的是新手啊,教教我吧!!!!
First, thank you to user 4th floor. According to your prompt, I used the following code and placed it in the MP3 folder:
for /r %%i in (*.mp3) do echo %%~fnxi >> Playlist.m3u
Then I executed it, but the resulting list is not satisfactory because it contains absolute addresses, such as
F:\1983.Kill 'EM All\1.Hit The Lights.mp3
F:\1983.Kill 'EM All\2.The Four HorseMen.mp3
.........
But how should I do it if I want to get like this??
1.Hit The Lights.mp3
2.The Four HorseMen.mp3
.........
PS: I'm really a newbie ah, teach me please!!!!
|
|
2006-12-17 02:04 |
|
|
tianzizhi
高级用户
   
积分 622
发帖 214
注册 2006-9-22
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
for /r %%i in (*.mp3) do echo %%~nxi >> Playlist.m3u,把f去掉
/r 是 for 循环的一个参数,表示递归遍历当前目录及其子目录。原命令是遍历所有子目录下的 mp3 文件并将文件名写入 Playlist.m3u。去掉 f 后命令变为:for /r %%i in (*.mp3) do echo %%~nxi >> Playlist.m3u
按要求只输出翻译后的内容(这里原内容是英文相关操作说明,无实际需要翻译的中文,所以直接保留):for /r %%i in (*.mp3) do echo %%~nxi >> Playlist.m3u
|
|
2006-12-17 02:17 |
|
|
kich
中级用户
  
积分 397
发帖 168
注册 2006-10-8
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
yah.......
解决了,谢谢楼上所有帮助我的,多谢啊!!
yah.......
Solved, thank you to all the above who helped me, thanks a lot!!
|
|
2006-12-17 02:50 |
|
|
shenkuxiaofu
新手上路

积分 13
发帖 6
注册 2007-6-12
状态 离线
|
|
2007-6-15 10:56 |
|