Sahi Pro - How can I automate FTP file transfer?
Create all the following files in the
userdata/scripts
folder-
Create
myftp.bat
with the following contents
cd /d %~dp0 ftp -s:ftp_info.txt ftp.your_server.com
info NOTE: Replaceftp.your_server.com
with your ftp server name
-
Create
ftp_info.txt
with the following contents
your_username your_password ls quit
info Replaceyour_username
andyour_password
with your username and password.
info Replacels
with your commands.
-
Create
ftp.sah
with the following contents
var $out = _execute(_resolvePath("myftp.bat"), true); _alert($out);
-
Run
ftp.sah
from the Controller or using testrunner.bat.