FlashFXP命令行

flashfxp.exe -upload ftp://user:pass@ip:port -localpath="本地路径"  -remotepath="远程FTP上的路径"

lashFXP是一个我个人感觉非常好用的FTP工具,但是作为系统管理员,真心希望可以通过命令行去解决一切问题,只为自动化脚本可以为我们节省出一点喝茶的时间。

这是之前一篇文章中用到过的,调用FlashFXP上传文件的一个脚本:

$execPath="D:Progra~1FlashFXPflashfxp.exe"
$execArgs="-upload ftp://u:p@ip:21 "
$execArgs=$execArgs+"-remotepath=`"/`" "
$execArgs=$execArgs+"-localpath=`"d:123\`" "
& $execPath $execArgs.Split()

如果你习惯批处理,那也可以把FlashFXP的命令行拔出来使用。

使用FlashFXP上传文件(夹)的命令行语法:

flashfxp.exe -upload ftp://user:pass@ip:port -localpath="本地路径"  -remotepath="远程FTP上的路径"

使用FlashFXP下载文件的命令行语法:

flashfxp.exe -download <sitename> -remotepath="ftpfolder" -localpath="c:path ewfolder"

这里解释一下<sitename>是什么玩意儿,在FlashFXP里面,虽然我很喜欢使用快速连接,或者使用历史记录,虽然你也许跟我一样…… 但请注意,它其实还有一个站点管理器,里面可以保存多个站点信息,这里的sitename,就是指站点管理器的站点名。

比较完整的FlashFXP的命令行使用,请参照官方:

http://www.flashfxp.com/forum/flashfxp/faq/14748-command-line-switches.html

 https://www.flashfxp.com/forum/flashfxp/frequently-asked-questions-faq-/14748-command-line-switches.html

原文地址:https://www.cnblogs.com/wcLT/p/5337846.html