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?
Im trying to build a script that will rename several files in an ftp server and add an incremental number:

example:

folder.jpg
file.jpg
cat.jpg
car.jpg

rename

my1.jpg
my2.jpg
my3.jpg
my4.jpg

any help would greatly be appreciated.
FTP Script
  1. GETLIST($List, REMOTE_FILES)
  2. $Count=1
  3.  
  4. FOREACH $Item IN $List
  5.   RENAMEFILE($Item, "my".$Count.".*")
  6.   $Count=$Count+1
Thanks Wandrey