您的位置:首页 > 编程语言 > PHP开发

FTP导入脚本自动执行任务示例

2007-12-14 12:52 417 查看
2007年02月27日 17:08:00

如何不使用 LiveUpdate 来自动更新 Symantec AntiVirus 企业版的定义
http://service1.symantec.com/SUPPORT/INTER/ent-securitysimplifiedchinesekb.nsf/0/aedbcf89013e49a388256d9600609995?OpenDocument&seg=en&lg=zh&ct=cn
一个很好的示例,演示了使用Windows自带的FTP命令-s参数,执行Cescript.txt脚本中的一系列命令,从Symantec FTP下载最新的病毒库并安装到本地,cegetter.bat做成计划任务后则可以每天定时下载病毒库了。
cegetter.bat批处理内容
ftp -s:cescript.txt
call "%systemdrive% avup8.exe"
move %systemdrive%*.xdb >path<
del /q %systemdrive%navup8.exe

Cescript.txt脚本内容
open ftp.symantec.com
anonymous
nobody@spammer.com
cd public/english_us_canada/antivirus_definitions/norton_antivirus/static
lcd C:
bin
hash
prompt
get navup8.exe
quit

Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1516110
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: