China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 02:48
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Solved] How to implement batch processing to generate many files View 4,179 Replies 24
Original Poster Posted 2009-04-21 00:18 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
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 ]
Floor 2 Posted 2009-04-21 00:36 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
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.
Floor 3 Posted 2009-04-21 00:41 ·  中国 广东 韶关 电信
新手上路
Credits 19
Posts 20
Joined 2008-07-03 20:33
18-year member
UID 121064
Gender Male
Status Offline
Got confused in the [Share]
Floor 4 Posted 2009-04-21 00:43 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
Isn't this considered a share?
Floor 5 Posted 2009-04-21 00:52 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
The time on the forum is wrong... Why is it only 00:43...
Floor 6 Posted 2009-04-21 00:56 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
Angry, cheated by a unscrupulous thread starter

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 7 Posted 2009-04-21 00:57 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Q: Why is the local time not synchronized with the forum time?
A: http://www.cn-dos.net/forum/viewthread.php?tid=45124
Floor 8 Posted 2009-04-21 11:54 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
Cry, is there really no such batch processing?
Floor 9 Posted 2009-04-21 12:04 ·  中国 重庆 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
There is. You continue to cry, let's see if you can cry out.
Floor 10 Posted 2009-04-22 00:11 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
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....
Floor 11 Posted 2009-04-22 00:51 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
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 ]
Floor 12 Posted 2009-04-22 02:00 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
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?
Floor 13 Posted 2009-04-22 08:42 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
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.

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 14 Posted 2009-04-22 09:02 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
@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

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 15 Posted 2009-04-22 12:15 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
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.

<qsed version="3.0.0.57">
<entry>
<ref href="qvod://261204498|79B492FD2273303CF4A58EB8E0746FF57E15BD4C|败犬女王_14.rmvb|
"/>
</entry>
</qsed>


[ Last edited by liu3157551 on 2009-4-22 at 12:25 ]
Attachments
败犬女王_14.rar (256 bytes, Downloads: 20)
Forum Jump: