Skip to main content
New Contributor III
August 21, 2008

FortiClient API example code

  • August 21, 2008
  • 0 replies
  • 6889 views
Article
Description FortiClient Microsoft Windows API scripting examples.
Components
  • FortiClient 3.0 MR7 Patch 1
Steps or Commands

The FortiClient API, introduced in version 3.0 MR7, enables you to control a FortiClient VPN tunnel from a COM-enabled application or by using Windows Scripting. For detailed information, see the "Using the FortiClient API" chapter of the FortiClient Administration Guide.

The attached file provides code examples that use the FortiClient API. Inside the archive,

  • vbscript.wsf and jscript.wsf are Windows scripts that open a VPN tunnel named "test". (A tunnel of that name must be configured in the FortiClient application).
    Note: Windows scripts require FortiClient version 3.0 MR7 Patch 1 or later.
  • The vb6project folder contains a Microsoft Visual Basic version 6 project, including the pre-compiled application, VPN container.exe. This program demonstrates all of the FortiClient functionality available through the API.