Call now to talk to an automation expert — (512) 345-2211

Script Library

Sample scripts are provided as-is with no warranty of fitness for a particular purpose. These scripts are solely intended to demonstrate techniques for accomplishing common tasks. Additional script logic and error-handling may need to be added to achieve the desired results in your specific environment.


Send_Multiple_Types.s

Download

It is easy to use SENDFILE "*.pdf" or perhaps RCVFILE "*.xml" to transfer all the files of a particular type, but what if you want to send both "*.pdf" and "*.xml"? Robo-FTP supports multiple wildcard specifications seperated by the pipe symbol "|". You can use SENDFILE to accomplish this goal quite easily. This example uploads only files where the last four characters of the file name are .pdf and .xml but, with a few modifications, you could change or add file types or even convert this example into a download script.


  1  WORKINGDIR "c:\outbound"
  2  ARCHIVEDIR "c:\outbound\sent"
  3  ;; exit if bad archive path
  4  IFERROR RETURN 
  5  FTPLOGON "MyRemoteSite" 
  6  IFERROR RETURN
  7  SENDFILE "*.pdf|*.xml" /archive  

Browse complete list of scripts

Need help figuring out where to start?

Our sales staff is available to answer product questions and help you determine if Robo-FTP is a good match for your project.

Call Now: (512) 345-2211