Example
In the following example, the script executes the following sequence of commands:
- Turns on the Trace command to send detailed information to the transfertrace.txt file.
- Logs onto the server with the user name ipswitch.
- Logs onto the server with the password yomhashoah.
- Connects to the FTP server ftp.mywebprovider.com.
- Changes the remote directory to /user/ipswitch/images.
- Changes the local directory to C:\My Documents\My Pictures
- POSTXFER starts Post Transfer Mode. PXDELETE is a Post Transfer Action that deletes the source files after the transfer has completed.
- 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.
- CLOSE disconnects from the FTP server.
