Skip to content
Get Free Trial

How can I automate FTP file transfer?

Create all the following files in the userdata/scripts folder

  1. Create myftp.bat with the following contents

    Terminal window
    cd /d %~dp0
    ftp -s:ftp_info.txt ftp.your_server.com
  2. Create ftp_info.txt with the following contents

    your_username
    your_password
    ls
    quit
  3. Create ftp.sah with the following contents

    var $out = _execute(_resolvePath("myftp.bat"), true);
    _alert($out);
  4. Run ftp.sah from the Controller or using testrunner.bat.