Lesson 1: Your first script

ScriptFTP is a script driven FTP client. It works like traditional FTP clients but it does not require user interaction to run, it works automatically using a text file containing the actions that ScriptFTP have to execute. Let's see a simple script:

FTPOPENHOST("ftp.myhost.com","myuser","mypassword")
FTPGETFILE("myfile.zip")
FTPCLOSEHOST


Click on File->New -> Empty Script   and copy the above script replacing "ftp.myhost.com" , "myuser" and "mypassword" with your settings.








Save it under the notepad and then click RUN on the ScriptFTP window.








As you can see this script connects to the FTP server, downloads a file and disconnects. It's a fairly simple script.

To familiarize yourself with the commands supported by ScriptFTP take a look at the COMMAND LIST. You may also take a look at FTPOPENHOST, FTPGETFILE, FTPPUTFILE.


The Lesson 1 has finished, before going to the next Lesson, take a look at the Script Examples section of ScriptFTP.com, there, you will find a collection of scripts for different purposes.



Next Lesson: Transfering files