- @echo off
- (echo mf2008
- echo 000416
- echo dir /wwwroot/2001/ hanye2.txt
- echo quit)>hanye1.txt
- ftp -s:"hanye1.txt" mf2008.512j.com
- (echo mf2008
- echo 000416
- echo cd /wwwroot/2001/
- for /f "tokens=8*" %%a in (hanye2.txt) do echo get "%%b" "D:\tools\oop\%%b"
- echo quit)>hanye1.txt
- ftp -s:"hanye1.txt" mf2008.512j.com
- del /q hanye*
复制代码
|