i want to download the "abcd.txt" file 'n' times with step of 2 mins. Following is the batch (with ftp script in it) file i've created to download a file from FTP.
:DOWNLOAD_AGAIN
@ftp -i -s:"%~f0"&GOTO:DOWNLOAD_AGAIN
open 192.168.4.4
username
password
!:--- FTP commands below here ---
cd /data/
pwd
get abcd.txt
bye
The problem is, 1) Above batch file does not wait for 2 mins, it immediately starts downloading the file again. 2) I dont know how to restrict it to download only 'n' times.
Any help! Thanks!