Example

In the following example, the script executes the following sequence of commands:

  1. Turns on the Trace command to send detailed information to the transfertrace.txt file.
  2. Logs onto the server with the user name ipswitch.
  3. Logs onto the server with the password yomhashoah.
  4. Connects to the FTP server ftp.mywebprovider.com.
  5. Changes the remote directory to /user/ipswitch/images.
  6. Changes the local directory to C:\My Documents\My Pictures
  7. POSTXFER starts Post Transfer Mode. PXDELETE is a Post Transfer Action that deletes the source files after the transfer has completed.
  8. All files ending in .jpg are copied from the remote directory to the local directory. PXDELETE deletes all transferred source files from the /user/ipswitch/images remote folder.
  9. CLOSE disconnects from the FTP server.

Sample Script