目标:实现本地pc向ftp服务器上传文件
具体实现:
(1)新建一个*.bat文件,比如abc.bat---文件名不要起成关键字的名字,否则运行不了!
(2)*.bat文件的内容是: ftp -s:Commands.txt!
(3)在相同的目录下创建Commands.txt!
(4)Commands.txt的内容是:
ftp 10.64.4.222(ftp服务器的地址)
username
password
put a.txt ---a.txt 是指定要上传的文件,get a.txt 是下载!
bye --- 断开与ftp服务器之间的链接
(5)单击*.bat文件运行即可!
具体实现:
(1)新建一个*.bat文件,比如abc.bat---文件名不要起成关键字的名字,否则运行不了!
(2)*.bat文件的内容是: ftp -s:Commands.txt!
(3)在相同的目录下创建Commands.txt!
(4)Commands.txt的内容是:
ftp 10.64.4.222(ftp服务器的地址)
username
password
put a.txt ---a.txt 是指定要上传的文件,get a.txt 是下载!
bye --- 断开与ftp服务器之间的链接
(5)单击*.bat文件运行即可!