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-07-31 21:17
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 【Solution】 How to use batch processing to automatically download the xdb file on the following web page View 2,891 Replies 11
Original Poster Posted 2007-01-11 09:47 ·  中国 湖南 娄底 冷水江市 电信
中级用户
★★
Credits 312
Posts 77
Joined 2004-02-09 00:00
22-year member
UID 17031
Gender Male
Status Offline
Thanks vkill very much. His batch processing solved my problem. Thank you, I really admire vkill's batch processing ability. Oh, we noobs can only watch. Thanks vkill


Symantec's web page,

http://securityresponse.symantec.com/avcenter/download/pages/CS-SAVCE.html

I want to make a batch processing and put it on the server, let the batch processing automatically download the latest xdb virus database file on this web page every day.
The main task of the batch processing is:
Automatically download the latest virus database file from this web page or from ftp://ftp.symantec.com/AVDEFS/norton_antivirus/xdb/, and then copy it to the c:\program files\sav directory.
May I ask you all, how should this batch processing be written? The main problem is that the name of this virus database is different every day. How can I get the latest file name?


I mainly want to download the virus database file on its web page, but I am not good at batch processing, so please ask all the experts for advice


May I ask all the experts, how should this batch processing be done?

[ Last edited by chinaren12 on 2007-1-14 at 06:40 AM ]
Floor 2 Posted 2007-01-11 10:19 ·  中国 湖南 娄底 冷水江市 电信
中级用户
★★
Credits 312
Posts 77
Joined 2004-02-09 00:00
22-year member
UID 17031
Gender Male
Status Offline
In the FTP command in Windows 2003, which command can list all files in a specific FTP directory to the local hard disk?
Floor 3 Posted 2007-01-11 14:06 ·  中国 湖南 娄底 冷水江市 电信
中级用户
★★
Credits 312
Posts 77
Joined 2004-02-09 00:00
22-year member
UID 17031
Gender Male
Status Offline
Hey, no one is willing to teach me???
Floor 4 Posted 2007-01-12 03:25 ·  中国 湖南 娄底 冷水江市 电信
中级用户
★★
Credits 312
Posts 77
Joined 2004-02-09 00:00
22-year member
UID 17031
Gender Male
Status Offline
Everyone, please support me.
Floor 5 Posted 2007-01-12 08:16 ·  中国 湖南 娄底 冷水江市 电信
中级用户
★★
Credits 312
Posts 77
Joined 2004-02-09 00:00
22-year member
UID 17031
Gender Male
Status Offline
Bump yourself up, hoping to get the answer out
Floor 6 Posted 2007-01-13 06:10 ·  中国 甘肃 甘南藏族自治州 合作市 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Search for previous posts, there is a post that is the same as this one
Floor 7 Posted 2007-01-13 06:17 ·  中国 甘肃 甘南藏族自治州 合作市 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Randomly written, no testing

wget "http://securityresponse.symantec.com/avcenter/download/pages/CS-SAVCE.html"

sed "/>.*.xdb</!d;s/.*\(http:\/\/.*.xdb\)\x22>.*/\1/" CS-SAVCE.html|wget -i "-"

[ Last edited by vkill on 2007-4-18 at 02:44 AM ]
Floor 8 Posted 2007-01-14 05:42 ·  中国 湖南 娄底 电信
中级用户
★★
Credits 312
Posts 77
Joined 2004-02-09 00:00
22-year member
UID 17031
Gender Male
Status Offline
Originally posted by vkill at 2007-1-13 06:17 AM:
Randomly written, not tested

wget "http://securityresponse.symantec.com/avcenter/download/pages/CS-SAVCE.html"

sed "/>.*.xdb</!d;s/.*\(http:\/\/.*.xdb\)\x22>.*/\1/" ...



Dude, can you please post the address of that post for me?

I'm extremely grateful,
Also, is wget in the example another software? If so, please give an address, thank you
Floor 9 Posted 2007-01-14 06:33 ·  中国 湖南 娄底 电信
中级用户
★★
Credits 312
Posts 77
Joined 2004-02-09 00:00
22-year member
UID 17031
Gender Male
Status Offline
Very grateful to vkill,

Your batch processing is very successful, thank you very much, expert, admire, great, thank you, thank you!!!!!!!!!!!!!!!

Thanks a lot!!!!!!!!!
Floor 10 Posted 2007-01-14 06:35 ·  中国 湖南 娄底 电信
中级用户
★★
Credits 312
Posts 77
Joined 2004-02-09 00:00
22-year member
UID 17031
Gender Male
Status Offline
It would be great if friend vkill could explain the functions of these several statements!!!!!
Floor 11 Posted 2007-01-14 06:42 ·  中国 甘肃 甘南藏族自治州 合作市 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Originally posted by chinaren12 at 2007-1-14 06:35:
It would be great if friend vkill could explain the functions of these several statements!!!!!
Floor 12 Posted 2007-01-14 06:51 ·  中国 湖南 娄底 电信
中级用户
★★
Credits 312
Posts 77
Joined 2004-02-09 00:00
22-year member
UID 17031
Gender Male
Status Offline
I know wget, but I don't know the sed command. Can you tell me in detail? Especially the usage of getting http addresses through wildcards, and can you give more examples?
Forum Jump: