@rem get the Year/month/day from the local date.
Set "lc_y=%date:~0,4%"
Set "lc_m=%date:~5,2%"
Set "lc_d=%date:~8,2%"
Set "my_date=%lc_y%%lc_m%%lc_d%"
: Get_file
MD D:\ETL\log\dfp_log\%my_date%
MD D:\ETL\FTP_IN\ecif\%my_date%
Set "ftpuser= User name"
Set "ftppass= password"
Set "Ftpip=ip Address"
Set "Ftpfile=%temp%\tempftp.txt"
> "%ftpfile%" (
echo,%ftpuser%
echo,%ftppass%
Echo Bin
Echo Prompt off
Echo Cd/etl/ftpbuff/bisys
echo LCD D:\ETL\FTP_IN\ecif\%my_date%
Echo Mget Mu_dfp_1_*_%my_date%.txt
echo bye
)
Ftp-s: "%ftpfile%"%ftpip%
for/f%%i in (' dir/b/a-d d:\etl\ftp_in\ecif\%my_date%\* ') do (
set/a s+=1
)
Set count=%s%
echo%date% system time%time:~0,5% Statistics to folder there are:%count% files >>d:\%my_date%\ftp_result.log
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.