Using the COM Application Programming Interface (API)

Performing complex yet repetitive administrative tasks over a large enterprise can be very time consuming in a user interface. With scripting, you can automate tasks to save time and avoid user error. In 2004, GlobalSCAPE added a COM Application Programming Interface (API) to Secure FTP Server. Later that same year, COM API support was included in the first release of EFT Server. With this COM API support, you can interact with GlobalSCAPE's server products directly from your own custom applications using any COM-enabled programming language with the integrated development environment (IDE) of your choice. To create a new script file or program, you must have familiarity with programming concepts and, ideally, some experience with a COM-enabled programming language. This guide assumes you know how to create and execute a script and simply provides descriptions of the classes, methods, and properties in the GlobalSCAPE Server COM API. Few examples are provided; if you need assistance creating scripts, GlobalSCAPE Professional Services can create custom scripts for you.

Be sure to heavily document/comment your script. Adding descriptive comments to your script now will remind you and others of the purpose of the script, and makes it easier to borrow sections of script to use later in other scripts. A year from now, when you don't even remember writing the script, you'll be glad you added comments.

To find the interface, method, or property that you need to use in your script

This guide is intended as a supplement to the EFT Server/Secure FTP Server user guides. For an understanding of the concepts in this supplement, please refer to those guides.

The SFTPCOMInterface.CIServer Class

The SFTPCOMInterface.CIServer class is the class that an application can use directly. To start using the SFTP COM interface, you create the SFTPCOMInterface.CIServer class object, and then apply the methods and properties in the object.

For example: Set SFTPServer = CreateObject("SFTPCOMInterface.CIServer")

CIServer implements the ICIServer interface.

For script examples, refer to Creating Scripts.

Refer to the following Web sites for helpful information regarding scripting:

Available Interfaces

For example: Set Site = Sites.Item(0)