如何使用mget命令指定下载远程文件的目标位置?

How to specify the target location for downloading the remote file using mget command?

我有一个批处理文件可以从远程位置批量复制文件。这工作正常。但是这里我想指定本地系统位置(目标位置)。

样本:

 cd test/test
 mget sample_*.zip
 quit

使用lcd /path更改当前本地工作目录:

cd /source_remote_path
lcd /destination_local_path
mget sample_*.zip
quit

参见ftp man page

如果你是运行 Windows本地,使用Windows风格路径,当然:

lcd c:\destination_local_path

参见Windows ftp.exe lcd command help