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

来源:互联网 发布:suse linux yast命令 编辑:程序博客网 时间:2024/06/01 07:48

 

如何不使用 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