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-10-01 20:19
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Solved] How to implement batch processing to generate many files View 4,617 Replies 24
Floor 16 Posted 2009-04-22 13:40 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
20-year member
UID 63296
Status Offline
Although I feel very worried that QVOD has encrypted it... But in order to let you study, I can only do this. Is there any expert to help solve the problem?
Floor 17 Posted 2009-04-22 14:03 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
The generated file should probably be saved as UTF8. Also, please upload a copy of that "A.TXT" for us to take a look.

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 18 Posted 2009-04-23 21:23 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
20-year member
UID 63296
Status Offline
That is just that the download file address is collected in A, txt. It is like eDonkey. qvod://261204498|79B492FD2273303CF4A58EB8E0746FF57E15BD4C|败犬女王_14.rmvb|
The front is the size, the back is the sh1 fingerprint, and then the file name. You can name it randomly by yourself.
Floor 19 Posted 2009-04-23 22:22 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
Save the text obtained from the batch processing on the 14th floor as UTF8 and see if it can be recognized.

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 20 Posted 2009-04-23 23:44 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
20-year member
UID 63296
Status Offline
Still not working. Let's see what the difference is. I'll upload an attachment of a file generated by batch processing and a seed file for you.

[ Last edited by liu3157551 on 2009-4-24 at 07:06 ]
Floor 21 Posted 2009-04-23 23:50 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
20-year member
UID 63296
Status Offline
How about this?
1. Can we use batch processing to copy the original file to generate a new file?
2. Just modify and replace the address in the third line of the new file?
<qsed version="3.0.0.57">
<entry>
<ref href="qvod://261204498|79B492FD2273303CF4A58EB8E0746FF57E15BD4C|败犬女王_14.rmvb|
"/>
</entry>
</qsed>

Will this accurately complete the task?

[ Last edited by liu3157551 on 2009-4-23 at 23:54 ]
Floor 22 Posted 2009-04-24 03:20 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
==Let's try it to see if it works,
Can we use third-party command-line tools?
Seeing so many very good and powerful small movies in the list, I decided to install a player first
What players does the楼主use?

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 23 Posted 2009-04-24 05:48 ·  中国 北京 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
@echo off
for /f "tokens=1,2,3* delims=^|" %%i in (list.txt) do (
copy qsed.txt "%%k.qsed" /y
wfr "%%k.qsed" -ric:"<ref href=\".*" -t:"^<ref href=\"%%i|%%j|%%k|\r" -encout:utf-8


)
pause

Because to generate UTF-8 text, a third-party command-line tool WFR is used, which supports regular expression find and replace, and encoding conversion.

According to the idea mentioned in building 21, use a playable QSED file as a template, copy it into a new file, and then modify it with WFR.
The qsed.txt in the attachment is the template file.
list.txt is the file containing QVOD addresses.

Attachment download:
http://upload.cn-dos.net/img/1428.rar
http://www.namipan.com/d/QVOD.rar/5241150d035c3ef1fc4ad569f3cbad38651e3838bde60200

[ Last edited by yishanju on 2009-4-24 at 05:55 ]

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 24 Posted 2009-04-24 07:01 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
20-year member
UID 63296
Status Offline
Thank you. You're so smart and good``It's really rare to have someone like you. Your character is really good~~~
Thanks a lot~~It's hard to put into words, just like winning a prize^_^
Forgot to tell you it's QVOD Chinese KuaiBo Player^_^ Hope you'll like it too

[ Last edited by liu3157551 on 2009-4-24 at 07:03 ]
Floor 25 Posted 2010-01-05 15:07 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
20-year member
UID 63296
Status Offline
But after inspection, there were a few small issues, not perfect, but it doesn't affect use. Just not aesthetically pleasing. Some files have two more "^" symbols generated.

Then I finished it by randomly modifying it myself... I'm really stupid. Sorry to bother you again.

[ Last edited by liu3157551 on 2010-1-5 at 21:14 ]
Forum Jump: