需要用批处理把H盘下的666.rar文件上传到FTP的111目录下,为什么批处理只能执行到登陆上FTP,但为什么不能上传文件呢?FTP服务软件为FileZilla Server,批处理win10下执行,ftp客户端软件上传meiwt。请朋友们帮忙指点一下。
批处理如下:- @echo off
- echo open 121.48.139.217 >11.txt
- echo 123>>11.txt
- echo 123456>> 11.txt
- echo cd 111 >> 11.txt
- Echo binary>>11.txt
- Echo put h:\66.rar >> 11.txt
- Echo bye>>11.txt
- FTP -s:11.txt
复制代码 执行过程如下:
ftp> open 121.48.139.217
连接到 121.48.139.217。
220 欢迎登陆!
530 Please log in with USER and PASS first.
用户(121.48.139.217none)):
331 Password required for 123
230 Logged on
ftp> cd 111
250 CWD successful. "/111" is current directory.
ftp> binary
200 Type set to I
ftp> put h:\66.rar
200 Port command successful
150 Opening data channel for file upload to server of "/111/66.rar" -----卡在这一步了 |