ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Need help writing a script? Have any question about ScriptFTP?
Hi every one,

I have 120 stores
each store has one FTP Server on 192.1.xxx.2 (xxx= number of store)
I have to get /send/ca.txt on each FTP Server stores
I have to deposit each ca.txt on /receiv/xxx (xxx = number of store)

Question :

Is it possible to create a counter which is going to increment the xxx numbers to connect to each ftp server and deposit the ca.txt file on the right /receiv/xxx directory

i hope what i mean is clear :oops:
Last edited by Callimaque on 27 Mar 2013, 09:13, edited 1 time in total.
FTP Script
  1. $Cnt=1
  2. WHILE($Cnt <= 120)
  3.   LOCALCHDIR("/receiv/".$Cnt)
  4.   OPENHOST("192.1.".$Cnt.".2")
  5.   CHDIR("/send")
  6.   GETFILE("ca.txt")
  7.   $Cnt=$Cnt+1
Thank you Andrey, i will try.
Seems to be exactly what i want.

:)