@echo %dbg% off if %pw%.==. goto e if %1.==. goto e set f=%1 if not exist %f% goto e set in={%0}.in set out={%0}.out echo indiscreet>%in% echo %pw%>>%in% echo bi>>%in% echo ha>>%in% echo prom>>%in% echo cd htdocs/img>>%in% echo dir %f%>>%in% echo put %f%>>%in% echo dir %f%>>%in% echo bye>>%in% ftp -s:%in% ftp01.powweb.com>%out% grep "%f%" %out%|sed "s/ / /" ls -l "%f%" if %dbg%.==. cat %in% %out% :e if exist %in% del %in% if exist %out% del %out%