![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-11 11:41 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » [fixed] Batch rename song titles |
| Printable Version 1,269 / 11 |
| Floor1 jycel | Posted 2009-02-25 19:06 |
| 初级用户 Posts 46 Credits 75 | |
|
After using dir d:\music\*.*>列表1.txt /b
the format of 列表1.txt is as follows JJ Lin-At the Moment of Decisive Battle Fish Leong-Premonition of Happiness Teresa Teng-Love in the Heart Teresa Teng-With Me There Is You Teresa Teng-Taipei Girl JJ Lin-ENCORE ………… Suppose it is changed to the following format: 列表2.txt JJ Lin - At the Moment of Decisive Battle Fish Leong - Premonition of Happiness (LIVE Complete Record edition) Teresa Teng - Love in the Heart Teresa Teng - With Me There Is You Teresa Teng - Taipei Girl JJ Lin - ENCORE Teresa Teng - Always Smile That is, change "-" into " - " Of course it's easy to replace it directly in the list, then use the corrected list (列表2.txt) to modify the corresponding song names in song list 1 in the music library! Changing them one by one is too troublesome, so I'd like to ask how to do this in batch! [ Last edited by jycel on 2009-2-27 at 07:53 ] |
|
| Floor2 tireless | Posted 2009-02-25 20:18 |
| 银牌会员 Posts 1,122 Credits 2,025 | |
| Floor3 radem | Posted 2009-02-25 20:38 |
| 高级用户 Posts 383 Credits 691 | |
Originally posted by jycel at 2009-2-25 07:06 PM: Doesn't Notepad have a replace function? |
|
| Floor4 jycel | Posted 2009-02-25 21:26 |
| 初级用户 Posts 46 Credits 75 | |
Originally posted by radem at 2009-2-25 08:38 PM: Notepad does have a replace function. What I mean is batch-changing the music names in the music library: Singer1-Song1 changed to Singer1 - Song1 Singer2-Song2 changed to Singer2 - Song2 Singer3-Song3 changed to Singer3 - Song3 And everyone can try it too: if there are a large number of characters in Notepad, replace still isn't as fast as a batch file! |
|
| Floor5 jycel | Posted 2009-02-25 21:32 |
| 初级用户 Posts 46 Credits 75 | |
Originally posted by tireless at 2009-2-25 08:18 PM: A question: Does "%%中 mean all the original filenames in the music library what about -%%丮? Do you mean first get the dir listing, then split each line into two characters, and then rename them? |
|
| Floor6 tireless | Posted 2009-02-25 21:34 |
| 银牌会员 Posts 1,122 Credits 2,025 | |
|
Just run the code in reply #2 directly.
-------------------------------- JJ Lin-At the Moment of Decisive Battle ← split into the red and blue parts. |
|
| Floor7 jycel | Posted 2009-02-25 21:38 |
| 初级用户 Posts 46 Credits 75 | |
Originally posted by tireless at 2009-2-25 09:34 PM: No response at all! |
|
| Floor8 tireless | Posted 2009-02-25 21:43 |
| 银牌会员 Posts 1,122 Credits 2,025 | |
|
I overlooked one point. Change it to this:
[ Last edited by tireless on 2009-2-25 at 21:45 ] |
|
| Floor9 jycel | Posted 2009-02-25 21:45 |
| 初级用户 Posts 46 Credits 75 | |
|
It worked. Thank you so much!
I still don't understand this “%%中-%%丮”, hehe! Please explain it a bit |
|
| Floor10 tireless | Posted 2009-02-25 21:54 |
| 银牌会员 Posts 1,122 Credits 2,025 | |
|
“%%中-%%丮” is the same as “%%a-%%b” ... just using Chinese instead. The a b or 中 丮 in it are arranged according to ASCII encoding, and the ASCII codes of those two Chinese characters are also right next to each other. (Converted with the software ASCII码随心换)
[ Last edited by tireless on 2009-2-25 at 21:55 ] |
|
| Floor11 netbenton | Posted 2009-02-25 22:35 |
| 银牌会员 Posts 752 Credits 1,916 From 广西 | |
|
Learned something. I originally thought for tokens could only use letters and numbers.
Brilliant! |
|
| Floor12 BC | Posted 2009-02-25 22:50 |
| 中级用户 Posts 175 Credits 338 | |
|
Brother tireess likes playing with unusual stuff too...
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |