FTP (File Transfer Protocol)                                            Example

FTP command in Workspace Macro Pro provides the following features

  1. Connect to your FTP server
    Specify your FTP server name, username and password to connect. Anonymous login to your FTP server is supported. Click 'Advanced' button to set advanced connection options.
  2. Disconnect from FTP server
    Terminates connection to your FTP server.
  3. Put Folder
    You can upload entire folder from local machine to your FTP server using this feature. Also you can specify filters using wildcard characters to restrict upload only for specific type of files.
  4. Get Folder
    You can download entire folder from your FTP server to local machine using this feature. Also you can specify filters using wildcard characters to restrict download only to specific type of files.
  5. Put File
    This feature allows you to upload a single file on your FTP server from local machine.
  6. Get File
    This feature allows you to download a single file to local machine from your FTP server.
  7. Create Folder
    This feature allows you to create a folder on your FTP server.
  8. Remove Folder
    This feature allows you to remove a folder (including its sub-folders and files) from your FTP server.
  9. Change Folder
    This feature allows you to go to any specific directory on your FTP server. This feature is generally used when you want to download/upload files in different directories on your FTP server.

Example: Download a file routinely from FTP

  1. Open the Macro Editor from Tools -> Macro Editor.
  2. Double click on the 'FTP' command.
  3. Select the 'Connect' option.
  4. Specify the server address like ftp://yourserver.com , username/password and click Save.
  5. Double click on the 'FTP' command.
  6. Select 'Get File' option.
  7. In 'Remote File' specify the file name on the FTP server that you want to download for e.g. Folder1/Folder2/myfile.doc.
  8. In Local file select the folder name by clicking on '...' button.
  9. If your document is html, txt or any other ascii format, select ascii format, else select binary.
  10. Click on 'Save'
  11. Double click on the 'FTP' command.
  12. Select 'Disconnect'