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 01:43
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Completed] How to extract addresses from *.qsed files into Html? View 5,012 Replies 24
Original Poster Posted 2010-01-04 22:25 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
I very much need this function, it would be nice if it could be output as a hyperlink in an HTML file, or as text.

qvod://200306917|4EDA9AEBCBD8F8EF104CCD512F43F759ED3319AD|灿烂的遗产01.rmvb|

[ Last edited by liu3157551 on 2010-1-5 at 21:13 ]
Floor 2 Posted 2010-01-04 23:00 ·  中国 广西 南宁 电信
初级用户
★★
Credits 99
Posts 53
Joined 2006-08-18 18:44
19-year member
UID 60809
Status Offline
```@echo off
sed "/href/!d; s/.*\x22\(.*\)/\1/g" *.qsed
pause>nul```
Floor 3 Posted 2010-01-05 13:10 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
I downloaded and tried it, but it only outputs to the window, not to Html. Do you have any other ways?
Floor 4 Posted 2010-01-05 13:18 ·  中国 广西 南宁 电信
初级用户
★★
Credits 99
Posts 53
Joined 2006-08-18 18:44
19-year member
UID 60809
Status Offline
Just add a redirection:

@echo off
sed "/href/!d; s/.*\x22\(.*\)/\1/g" *.qsed >new.x
pause>nul


Also, how exactly are the hyperlinks?
Floor 5 Posted 2010-01-05 13:29 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
Just a simplest web link will do
Floor 6 Posted 2010-01-05 13:30 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
Tried it, and it feels pretty good. Quite practical.

[ Last edited by liu3157551 on 2010-1-5 at 14:31 ]
Floor 7 Posted 2010-01-05 14:28 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
This can be output as a text file. Can you add the address of the TXT to the html again? Please. I don't know.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.5583" name=GENERATOR></HEAD>
<BODY>
<DIV><A
href="qvod://200306917|4EDA9AEBCBD8F8EF104CCD512F43F759ED3319AD|灿烂的遗产01.rmvb|">灿烂的遗产01</A></DIV>
...
...
...
...
<DIV><A
href="qvod://200306917|4EDA9AEBCBD8F8EF104CCD512F43F759ED3319AD|灿烂的遗产02.rmvb|">灿烂的遗产02</A><BR></DIV></BODY></HTML>


[ Last edited by liu3157551 on 2010-1-5 at 14:43 ]
Floor 8 Posted 2010-01-05 15:09 ·  中国 北京 中电华通通信有限公司
高级用户
★★★
据说是李先生
Credits 609
Posts 400
Joined 2008-04-23 15:55
18-year member
UID 116706
Gender Male
Status Offline
Encountered two such problems, and suddenly learned something new, haha, not bad!

I made a foolproof version for you, in VBS. The function is that after running, it lets you select a folder, and then it will extract the addresses from all .qsed files in this folder and its subfolders, and generate a .htm file.
Attachments
qsed.zip (1.39 KiB, Downloads: 122)
┏━━━━━━┓
┃据说是李先生┃
┠──────┨
┃*ntRSS┃
┗━━━━━━┛
Floor 9 Posted 2010-01-05 15:17 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
The method upstairs is feasible, but not concise enough. It's not the format I want, but I'll make do with it. Thanks a lot.

I don't know if you can help me complete the problem above
http://www.cn-dos.net/forum/viewthread.php?tid=47087&fpage=1&highlight=
The generated file is not perfect

[ Last edited by liu3157551 on 2010-1-5 at 15:28 ]
Floor 10 Posted 2010-01-05 15:28 ·  中国 北京 中电华通通信有限公司
高级用户
★★★
据说是李先生
Credits 609
Posts 400
Joined 2008-04-23 15:55
18-year member
UID 116706
Gender Male
Status Offline
What does it mean?

I think your expression is problematic, and you haven't made the problem clear.
┏━━━━━━┓
┃据说是李先生┃
┠──────┨
┃*ntRSS┃
┗━━━━━━┛
Floor 11 Posted 2010-01-05 15:38 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
The one you have is too big. I wonder if you can make it like mine?
Floor 12 Posted 2010-01-05 16:00 ·  中国 北京 中电华通通信有限公司
高级用户
★★★
据说是李先生
Credits 609
Posts 400
Joined 2008-04-23 15:55
18-year member
UID 116706
Gender Male
Status Offline
Attachments
qsed.zip (1.34 KiB, Downloads: 73)
┏━━━━━━┓
┃据说是李先生┃
┠──────┨
┃*ntRSS┃
┗━━━━━━┛
Floor 13 Posted 2010-01-05 16:36 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
That's great! You're really awesome! Thanks~~~ It's very good and GOOD after testing! Can you help solve the problem on floor 9? That is, convert the addresses in the TXT to *.qsed or something like html?
Floor 14 Posted 2010-01-05 16:51 ·  中国 北京 中电华通通信有限公司
高级用户
★★★
据说是李先生
Credits 609
Posts 400
Joined 2008-04-23 15:55
18-year member
UID 116706
Gender Male
Status Offline
Hey. . .

Haven't you seen the batch script written by yishanju? Just change it a little bit.


@echo off
setlocal ENABLEDELAYEDEXPANSION

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

pause
┏━━━━━━┓
┃据说是李先生┃
┠──────┨
┃*ntRSS┃
┗━━━━━━┛
Floor 15 Posted 2010-01-05 17:03 ·  中国 广西 南宁 电信
中级用户
★★
Credits 259
Posts 164
Joined 2006-09-21 23:39
19-year member
UID 63296
Status Offline
Using the above method can indeed save it as a *.qsed file, but the program doesn't recognize it. Even the qsed.vbs you provided doesn't recognize it.

[ Last edited by liu3157551 on 2010-1-5 at 17:42 ]
Forum Jump: