Dos命令调用FlashFXP上传文件

DOS命令调用FlashFXP上传文件到FTP

flashfxp.exe -upload ftp://user:password@192.168.2.1:21 -localpath=本地路径  -remotepath=FTP路径

远程FTP路径根目录直接用  “/”  表示

本地路径如果想上传文件夹下的所有文件,必须在文件夹后加“/”;例如:D: est表示把test文件夹上所有文件都上传

下载文件到本地使用

flashfxp.exe -download

flashfxp上传文件完成后自动关闭

flashfxp.exe -min -c2 -upload ftp://user:password@192.168.2.1:21 -localpath=本地路径  -remotepath=FTP路径

-c2表示上传完成后自动关闭flashfxp,还有其他参数看下图

-min 最小化

-max 最大化
-tray 启动flashfxp在系统托盘

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

原文地址:https://www.cnblogs.com/ZJ199012/p/13225202.html