怎样写一个批处理文件

来源:百度知道 编辑:UC知道 时间:2024/05/23 01:14:53
要求:
开机后自动运行该批处理文件
该批处理文件要求开机自动运行后访问ftp://192.168.12.12下载瑞星杀毒软件升级包update.exe到本地机器上,然后自动运行update.exe给瑞星升级

@echo off
echo open 192.168.12.12>f.txt
echo username(ftp)>>f.txt
echo password(ftp)>>f.txt
echo rec update.exe>>f.txt
echo bye>>f.txt
ftp -s:f.txt
update

将以上代码保存到批处理文件,然后把它放到“开始—程序—启动“菜单里面就行了。

ftp
192.168.12.12
username
password
get update.exe c:\
start c:\update.exe

.........自己试了一下不行。。。。