你好,
我已经可以通过命令行连接FTP,
但是我写了一个自动登陆,连接,下载,
的批处理如下:
@echo off
rem echo ftp >> Downftp.tmp
rem echo wait 00:01 >> DownFtp.tmp
echo open 58.213.121.80 >> DownFtp.tmp
rem echo wait 00:01 >>DownFtp.tmp
echo anonymous >> DownFtp.tmp
rem echo wait 00:01 >> DownFtp.tmp
echo anonymous >> DownFtp.tmp
rem echo wait 00:01 >> DownFtp.tmp
echo get startfile.TXT D:\startfile.TXT >> DownFtp.tmp
rem echo wait 00:02 >> DownFtp.tmp
echo close >> DownFtp.tmp
rem echo wait 00:01 >> DownFtp.tmp
echo bye >> DownFtp.tmp
rem echo EOF >> DownFtp.tmp
Run DownFtp.tmp
rem del DownFtp.tmp
if exist D:\startfile.TXT @echo the net is connected ok!
pause
if exist D:\startfile.TXT del D:\startfile.TXT
:end
运行这个批处理却连接不上FTP,
不知道是什么原因,
请指教!