波斯国王薛西斯:BAT中如何换行输入

来源:百度文库 编辑:高校问答 时间:2024/04/28 11:57:31
___________ftp.bat_______

::/* 使用Ftp模式下载文件 */
echo open %1 %2 >%temp%\DownFtp
echo %3 >>%temp%\DownFtp
echo %4 >>%temp%\DownFtp
echo get %5 %6 >%temp%\DownFtp
echo bye >>%temp%\DownFtp
ftp -s:%temp%\DownFtp

当我执行ftp.bat 127.0.0.1 21 name pass 1.txt e:\1.txt是想 将%temp%\DownFtp写成这样的
open 127.0.0.1 21
name
pass
get 1.txt e:\1.txt
bye
这样ftp -s:%temp%\DownFtp就可以登陆FTP服务器下载1.txt文件到本地e:\1.txt
但是发现写出来后name pass 这里都没有
写出来是
open 127.0.0.1 21
get 1.txt e:\1.txt
bye
其中换行输入的部分(%3 %4)都被忽略了
请问如何才能把输入的制给%3 %4?
晕 自己写错了 >> 写成 >了~