- @echo off
- set DstFolder=C:\test\FtpUnzip
- set RarPath=C:\Program Files\WinRAR
- set FtpFile=TempAcc.txt
- set Today=%date:~0,10%
- >"%FtpFile%" echo USERNAME
- >>"%FtpFile%" echo PASSWORD
- >>"%FtpFile%" echo bin
- >>"%FtpFile%" echo cd %Today%
- >>"%FtpFile%" echo mget *.rar
- >>"%FtpFile%" echo bye
- ftp -v -i -s:"%FtpFile%" IPADDRESS
- "%RarPath%\Rar.exe" x -y -ad "*.rar" "%DstFolder%"
复制代码
|