Example
- Last Updated: January 29, 2024
- 1 minute read
- WS_FTP Pro
- Version 12.9
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 progress.
- Logs onto the server with the password yomhashoah.
- Connects to the FTP server ftp.mywebprovider.com.
- Changes the remote directory to /user/progress/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/progress/images remote folder.
- CLOSE disconnects from the FTP server.
