How to search for the file or folder I want on an FTP? Scripts or tools can be used.
知识在于不断积累
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
echo open ip>1.txt
echo username>>1.txt
echo password>>1.txt
echo ls>>1.txt
echo bye>>1.txt
ftp -s:1.txt>1.log
findstr /b /e /c:"donghua" 1.log>2.txt && goto :cd
goto :eof
:cd
for /f "delims=" %%i in (2.txt) do set fdname=%%i
echo open ip>1.txt
echo username>>1.txt
echo password>>1.txt
echo cd %fdname%>>1.txt
ftp -s:1.txt