Frequently Asked Questions

The FAQ list is a great starting point for basic questions about what you can do with Robo-FTP.

Orange_arrowOrange_arrow Browse the FAQ list now

Knowledge Base

Our searchable knowledge base covers most of the common errors and implementation problems you are likely to encounter.

Orange_arrowOrange_arrow Search the Knowledge Base now

Contact Technical Support

If you can't find the answers you need online, get in touch with our Technical Support staff.

Orange_arrowOrange_arrow Contact Technical Support now

Professional Services

Need more than basic technical support? Our Professional Services team can help you deploy a complete solution.

Orange_arrowOrange_arrow Contact Professional Services now

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.


unzip_uploaded_file.s

Download

This sample script was written for use with Robo-FTP Server v3.2.5. The steps may vary slightly for newer or older versions. This sample script is NOT for use with the Robo-FTP client.

Robo-FTP Server provides a powerful event-driven automation interface which enables you to launch Robo-FTP scripts in response to events such as a user logging on, uploading a file, etc. This interface is called Server Event Scripts.

Several built-in variables are automatically populated whenever a Server Event Script is triggered. These variables contain information relevant to the event. For example, when a user uploads a file, variables are populated with information like the filename, the path to the file, etc. This knowledge base article describes the events and built-in variables available: KB#271.

The sample script below is designed to be triggered by the Upload Complete event. When executed by Robo-FTP Server, it moves the uploaded zip file to a pre-defined directory, unzips the contents, and deletes the zip file. The script automatically quarantines invalid or password protected zip files along with any other files not named with the .zip extension.

To configure Robo-FTP Server to launch the event script at the appropriate time, follow these steps:

Once all these steps are complete, upload a zip file to Robo-FTP server and then check the c:\destination folder for the unzipped contents. Then upload a non-zip file and verify that Robo-FTP Server moves it to the c:\quarantine folder.


  1  MOVE %event_uploadpath "c:\temp"
  2  SET zip_path = "c:\temp\" + %event_uploadfile
  3  SETRIGHT extension = %event_uploadfile 4
  4  IFNSTRCMPI extension ".zip" GOTO invalid_file
  5  UNZIP zip_path "c:\destination" "*"
  6  IFERROR GOTO invalid_file
  7  DELETE zip_path
  8  GOTO done
  9  :invalid_file
 10  ;; Not a valid zip file
 11  MOVE zip_path "c:\quarantine"
 12  :done
 13  EXIT

Browse complete list of scripts

Home | Solutions | Professional Services | Technical Support | Download | Company | Contact Us | Partners | Site Map | Terms of Service | Privacy Policy |