将要输入的内容写到文件,然后重定向标准输入:
C:\Documents and Settings\dev05>type help.txt
help
by
C:\Documents and Settings\dev05>ftp <help.txt
Commands may be abbreviated. Commands are:
! delete literal prompt send
? debug ls put status
append dir mdelete pwd trace
ascii disconnect mdir quit type
bell get mget quote user
binary glob mkdir recv verbose
bye hash mls remotehelp
cd help mput rename
close lcd open rmdir