Secure Version Only – Supports these additional encrypted protocols:

The WS_FTP Pro SDK includes a professional, MSDN® style developers user’s guide, help files, and examples for required operations in six languages.

WS_FTP Pro SDK User's Guide

The WS_FTP Pro SDK User's Guide is a professional, MSDN® style user’s guide with clearly defined syntax rules covering interfaces, methods, properties, parameters, classes and examples.

Take a look at the WS_FTP Pro SDK User's Guide
[CHM format, 144 KB]

"The wide range of code examples and the professional documentation were thorough and complete, and the support from Ipswitch was outstanding." Richard Bergman
Vice President, Engineering
Emanio, Inc.

Visual Basic 6.0

Set pApi = CreateObject("WsftpSDK.WsftpApi")
Set pConn = pApi.CreateConnection("127.0.0.1", "test", "password",
    WsftpConnectionTypes.WSFTP_CT_FTP, 21)
  If pConn Is Nothing Then
    If (pConn.PutFile("c:\temp", "802.exe", "/users/test", "File1.dll", 0, 0)) Then
      Log.AddItem ("Transfer Succeed")
  Else
    Log.AddItem ("Transfer Failed" + pApi.GetErrorString(pConn.LastError))
  End If
End If

Visual Basic .NET

pConn = pApi.CreateConnection("127.0.0.1", "test", "password",
      WsftpConnectionTypes.WSFTP_CT_FTP, 21)
If (pConn Is Nothing) Then
  If (pConn.PutFile("c:\temp", "802.exe", "/users/test",
      "File1.exe", WsftpTransferModes.WSFTP_TFF_BINARY, 0)) Then
    Log.AppendText("File2.exe uploaded" & vbCrLf)
  Else
    Log.AppendText("Failed to upload file File1.exe. Error: " &
      pApi.GetErrorString(pConn.LastError()) & vbCrLf)
  End If
End If

VB Script

Set pConn = pApi.CreateConnection("127.0.0.1", "test", "password", 2, 21)
if (pConn Is Nothing) then
  Wscript.Echo "failed to create connection, error:" +
      pApi.GetErrorString(pApi.LastError)
else
  pConn.PutFile "c:\temp", "802.exe", "/users/test", "File1.exe",
      0, 0
End if

C#

pConn = m_pApi.CreateConnection("127.0.0.1", "test", "password",
      ftpLib.WsftpConnectionTypes.WSFTP_CT_FTP, 21);
if (pConn is ftpLib.WsftpConnection)
  {
    if (pConn.PutFile("c:\\temp", "802.exe", "/users/test",
        "File1.exe",(int)ftpLib.WsftpTransferModes.WSFTP_TFF_BINARY,
        0))
      Log.AppendText("Uploaded file File1.exe\r\n");
    else
      Log.AppendText("Failed to upload file File1.exe, Error: " +
        m_pApi.GetErrorString(pConn.LastError) +"\r\n");
  }

C++

hret = pApi->CreateConnection(_bstr_t("127.0.0.1"), _bstr_t("test"),
      _bstr_t("password"), WSFTP_CT_FTP, 21, &pConn);
if (pConn)
{
  hret = pConn->PutFile(_bstr_t("c:\\temp"), _bstr_t("802.exe"),
      _bstr_t("/users/test"), _bstr_t("File1.exe"), 0, 0, &bRet);
  if (bRet)
    printf("File file1.exe uploaded\r\n");
  else
    printf("Failed to upload file File1.exe\r\n");
}

Javascript

var pConn = pApi.CreateConnection("127.0.0.1", "test",
      "password", 2, 21);
if (pConn)
{
  if (pConn.PutFile ("c:\temp", "802.exe", "/users/test",
        "File1.exe", 0, 0))
    print("File file1.exe uploaded");
  else
    print("File file1.exe Upload failed");
}