Script Utility

The WS_FTP Script Utility lets you group any number of file transfer tasks into a script that can be executed with one action. This can be especially useful for file transfers that you do repeatedly.

This chapter provides an overview of the Script Utility and some examples of how you might use it. For detailed instructions on using the Script Utility, start the Script Utility and use its online Help.

Using scripts, you can:

  • Connect to FTP sites
  • Upload or download files
  • Set the transfer mode
  • Make, delete, and rename folders
  • Delete and rename files
  • After the transfer has completed: delete, rename, move source files
  • Execute a DOS command

Scripts can also have some limited flow control. They can:

  • Check for the success or failure of the previous command
  • Jump to another point in the script if either success or failure is detected

Suppose you post weekly reports on your company's server for your co-workers in other cities to download. Let's assume you place the current week's reports in a folder named Current. You could create a script that:

  • Changes the name of last week's Current folder to Prior.
  • Creates a new folder named Current.
  • Uploads your current weekly reports to the Current folder.

You can also create scripts for downloads that you do repeatedly.