本帖最后由 pcl_test 于 2015-12-10 19:18 编辑
- @echo off
- color f0
-
- (
- (
- echo open 192.168.3.141 101
- echo cd /
- echo lcd %temp%
- echo get shebeiguanli.xls
- echo bye
- )>%temp%\ls.txt
- ftp -s:%temp%\ls.txt -A
- del %temp%\ls.txt
- )
-
- start "" %temp%\shebeiguanli.xls||pause
-
- del %temp%\shebeiguanli.xls
复制代码
ftp> open 192.168.3.141 101
连接到 192.168.3.141。
220 Wing FTP Server ready...
331 Password required for anonymous
230 User anonymous logged in.
对 Administrator@WQ-20151204GHHU 匿名登录成功
ftp> cd /
250 CWD command successful. "/" is current directory.
ftp> lcd E:\ADMINI~1\Temp
目前的本地目录 E:\ADMINI~1\Temp。
ftp> get shebeiguanli.xls
200 Port command successful
426 Data connection closed这里为什么?
ftp> bye
221 Goodbye.
系统找不到文件 E:\ADMINI~1\Temp\shebeiguanli.xls。
请按任意键继续. . . |