Scripts, license and trial

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
Post Reply
Olivier Bonnet
Posts: 1
Joined: Tue Apr 12, 2011 8:43 am

Scripts, license and trial

Post by Olivier Bonnet » Tue Apr 12, 2011 9:17 am

Hi,

I am evaluating SmartFTP.
We are looking for a solution to make automatic our transfers with a FTPS server.

And I have two questions:
  • The difference of the scripting between SmartFTP Pro and the FTP Library. I have understood that the difference is that, with the FTP library, we are allowed to deploy the dll. Do you confirm?
  • For test purpose I have done a script in C#. I am still in the valid trial periode.

    Code: Select all

    using System;
    
    using System.Collections.Generic;
    
    using System.Linq;
    
    using System.Text;
    
    using sfFTPLib;
    
    
    
    namespace Notilus
    
    {
    
        class Program
    
        {
    
            static void Main(string[] args)
    
            {
    
                /*sfFTPLib.Global global = new sfFTPLib.Global();
    
                if (global.LoadLicenseKeyData("..."))
    
                    System.Console.WriteLine("License key verified.");
    
                else
    
                    System.Console.WriteLine("Failed to verify license key.");*/
    
    
    
                // Create our COM object through the Interop
    
                FTPConnectionMTA ftp = new FTPConnectionMTA();
    
    
    
                // host settings
    
                ftp.Host = "*****";
    
                ftp.Port = 21;
    
                ftp.Username = "*****";
    
                ftp.Password = "*****";
    
                ftp.Passive = true;
    
    
    
                // connect to host
    
                sfFTPLib.enumError err = ftp.Connect();
    
                if (err == sfFTPLib.enumError.ftpErrorSuccess)
    
                {
    
                    System.Console.WriteLine("Youpi!");
    
                    ftp.Disconnect();
    
                }
    
                else
    
                {
    
                    if (err == sfFTPLib.enumError.ftpErrorLicense)
    
                        System.Console.WriteLine("Please acquire a license from https://www.smartftp.com");
    
                    else
    
                        System.Console.WriteLine("Connect() failed. LastError = {0}", ftp.LastError);
    
                }
    
    
    
            }
    
        }
    
    }
    With this code, I receive always a license error (the famous error 17). Even if I uncomment the license part.
    Do you know what is wrong in my script?

Thanks

Olivier
Saint-Gobain PPC

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Scripts, license and trial

Post by mb » Tue Apr 12, 2011 9:47 pm

>difference
Yes and you cannot directly access the FTP Library from the FTP client.

>trial
The trial has expired.

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Scripts, license and trial

Post by mb » Sat Apr 16, 2011 1:22 am

>trial
You may want to try it again with the latest version:
https://www.smartftp.com/download/
It should give you another 30 day.

Post Reply