中国DOS联盟论坛

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-12 03:38
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » [Solved] How to implement batch processing to generate many files
Printable Version  4,184 / 24
Floor1 liu3157551 Posted 2009-04-21 00:18
中级用户 Posts 164 Credits 259
How to do it from file A.txt as follows:
111111111111111111111111 (first line)
111111111111111111111111 (second line)
111111111111111111111111 (third line)
111111111111111111111111 (fourth line)
111111111111111111111111 (the... line)
111111111111111111111111 (the... line)


Of course, the content of each line is different
Only take the content of each line in file A and generate it into the different content in the same place in each new file



<qsed version="3.0.0.57">
<entry>
<ref href="qvod://261204498|79B492FD2273303CF4A58EB8E0746FF57E15BD4C|败犬女王_14.rmvb|
"/>
</entry>
</qsed>
Can this generate a B.bt file?

[ Last edited by liu3157551 on 2010-1-5 at 15:09 ]
Floor2 liu3157551 Posted 2009-04-21 00:36
中级用户 Posts 164 Credits 259
Is what I said not clear? Or is there a problem?
I want to generate each new file from each line in file A, that is, in the middle of the third line of each new file.
Floor3 gotocmd Posted 2009-04-21 00:41
新手上路 Posts 20 Credits 19
Got confused in the [Share]
Floor4 liu3157551 Posted 2009-04-21 00:43
中级用户 Posts 164 Credits 259
Isn't this considered a share?
Floor5 liu3157551 Posted 2009-04-21 00:52
中级用户 Posts 164 Credits 259
The time on the forum is wrong... Why is it only 00:43...
Floor6 yishanju Posted 2009-04-21 00:56
银牌会员 Posts 1,357 Credits 1,488
Angry, cheated by a unscrupulous thread starter
Floor7 HAT Posted 2009-04-21 00:57
版主 Posts 5,017 Credits 9,023
Q: Why is the local time not synchronized with the forum time?
A: http://www.cn-dos.net/forum/viewthread.php?tid=45124
Floor8 liu3157551 Posted 2009-04-21 11:54
中级用户 Posts 164 Credits 259
Cry, is there really no such batch processing?
Floor9 HAT Posted 2009-04-21 12:04
版主 Posts 5,017 Credits 9,023
There is. You continue to cry, let's see if you can cry out.
Floor10 liu3157551 Posted 2009-04-22 00:11
中级用户 Posts 164 Credits 259
But I can't find it. I've searched, but I don't understand. It would be great if someone could sort it out.... Especially for posts with multiple examples, I don't quite understand the meaning of them....
Floor11 liu3157551 Posted 2009-04-22 00:51
中级用户 Posts 164 Credits 259
How can you bully people like this... How can you treat someone who doesn't understand like this... If I could grow up, would I still need to be a child??? The behavior of helping others is already very rare. Instead, there are a lot of "old men." Who can be blamed? We just have to rely on ourselves.

[ Last edited by liu3157551 on 2009-4-22 at 00:52 ]
Floor12 HAT Posted 2009-04-22 02:00
版主 Posts 5,017 Credits 9,023
If you don't understand, just ask. If you don't understand a certain aspect, ask about that aspect. What's the use of crying there? Do you still think someone is bullying you? What should others do? Buy candy to coax you?
Floor13 yishanju Posted 2009-04-22 08:42
银牌会员 Posts 1,357 Credits 1,488
This was not really a difficult task. If I hadn't started with a deceiving title myself, I would have helped you long ago. It's best to upload the actual file.
Floor14 yishanju Posted 2009-04-22 09:02
银牌会员 Posts 1,357 Credits 1,488
@echo off
setlocal ENABLEDELAYEDEXPANSION

set n=0
for /f "delims=" %%i in (5.txt) do (
set /a n=n+1
(echo ^<version="22.0.0.57"^>
echo ^<entry^>
echo ^<ref href="%%i"/^>
echo ^</entry^>
echo ^</bt^>)>>5b!n!.txt

)

pause
Floor15 liu3157551 Posted 2009-04-22 12:15
中级用户 Posts 164 Credits 259
Actually, I just wanted to generate a QVOD seed file. Well, it can be generated but the software doesn't recognize it... I don't know the difference, so I uploaded the file.



[ Last edited by liu3157551 on 2009-4-22 at 12:25 ]

Attachments
败犬女王_14.rar (256 bytes)
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023