FTP Download Script

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
mfaisalkh
Posts: 3
Joined: 16 May 2014 07:16

FTP Download Script

#1 Post by mfaisalkh » 16 May 2014 11:41

Hi, I need a automated batch script to download files from server and call another batch file "av.bat".

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: FTP Download Script

#2 Post by foxidrive » 16 May 2014 13:39

Does this help? Much of it was recently posted here.

Code: Select all

@echo off
set "ftpScript=%temp%\%~nx0.ftp.tmp"
(
    echo open (ftp server name)
    echo (ftp user-name)
    echo (ftp password)
    echo prompt
    echo bin
    echo mget *.*
    echo quit
) > "%ftpScript%"

ftp -s:"%ftpScript%"
del "%ftpScript%"
call av.bat

mfaisalkh
Posts: 3
Joined: 16 May 2014 07:16

Re: FTP Download Script

#3 Post by mfaisalkh » 18 May 2014 03:02

Thanks for the script. One more thing ftp resume option has been enabled on server side, but how can i integrate ftp resume option in mentioned script.

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: FTP Download Script

#4 Post by Squashman » 19 May 2014 10:31

Windows FTP command does not support resume.

Post Reply