@echo off
d:
cd "D:\Program Files\PicaManager\DBBackup"
set tim2=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%
set file1=PicaLog[%tim2%*.*
set file2=PicaMgr[%tim2%*.*
dir
echo counter>aaa.txt
echo counter>>aaa.txt
echo bin>> aaa.txt
echo prompt>> aaa.txt
echo mget %file1%>> aaa.txt
echo mget %file2%>> aaa.txt
echo quit>>aaa.txt
echo %tim2% 
echo %file1% 
echo %file2% 
ftp  -s:aaa.txt c



