windows下使用curl下载ftp文件(ftp有密码)

curl下载地址:http://curl.haxx.se/download.html

如下是bat脚本---------

@echo off


echo %date%

set Now=%date:~0,4%%date:~5,2%%date:~8,2%

echo %Now%

set filename=abc-%Now%.zip

echo %filename%

echo curl.exe ftp://www.baidu.com:222/%filename% -u user:password -o c:\%filename%

echo -----------------------------------

echo 下载完毕

@pause



你可能感兴趣的:(windows下使用curl下载ftp文件(ftp有密码))