WORKINGDIR "c:\local\download\folder" FTPLOGON "My Remote Site" IFERROR RETURN :get_file_stats ;; The next line populates variables %sitefile and %sitefiledate FTPGETFILE "*" /newest IFERROR RETURN $ERROR_SUCCESS IFDATE< %sitefiledate %date RETURN $ERROR_SUCCESS RCVFILE %sitefile IFERROR RETURN GOTO get_file_stats