Robo-FTP Server

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

Getting Started

Browse these tutorials and sample scripts to get up and running with Robo-FTP in minutes.

Orange_arrowOrange_arrow Browse tutorials and samples 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

Enter search queries below or use the tag links to the right to browse the knowledge base by category (Show All Tags).

How to create Robo-FTP Server's users programmatically

Sometimes you may need to create or delete Robo-FTP Server users programmatically. This can be done using COM because the server's configuration management is exposed as an out of process COM server. Here I will provide an example of creating and deleting a user in C# using COM interop. The following steps must be done on a machine with Robo-FTP Server installed.

  1. Create a new C# Console Project
  2. Add a reference to RoboFTPServer configuration library
    a. Right click on references and select add reference.
    b. Choose COM and scroll down until you see RoboFTPServer Type Library
  3. Add a using line of the form using RoboFTPServer
  4. Insert the following code into your main function...

            RSGlobalConfig config = new RSGlobalConfigClass();
            if(args.Length == 3 && args[0] == "create")
                RSUserConfig user1 = new RSUserConfigClass();
                RSUserConfig user2 = new RSUserConfigClass();
                user1.Name = args[1];
                user1.Home = args[1];
                user1.Password = args[2];
                user1.Auth = UserAuth.AuthEither;
                user1.Permissions = (int)RoboPermissions.PermissionsAll;
                user2.Name = args[1];
                user2.Home = args[1];
                user2.Password = args[2];
                user2.Auth = UserAuth.AuthEither;
                user2.Permissions = (int)RoboPermissions.PermissionsAll;
                config.Servers[1].Users.Add(user1); //add user to ftp server
                config.Servers[2].Users.Add(user2); //add user to sftp server
                Console.WriteLine("User " + args[1] + " created.");
            else if (args.Length == 2 && args[0] == "delete")
                bool found = false;
                for(int i = 1; i <=2; i++)
                        found = true;
                if (!found)
                    Console.WriteLine("User " + args[1] + " not found!");
                    Console.WriteLine("User " + args[1] + " deleted.");
                Console.WriteLine("Usage: CreateOrDeleteUser create username password");
                Console.WriteLine("       CreateOrDeleteUser delete username");
        catch(Exception ex)

Article last updated: 2019-04-22

Tags: Robo-FTP Server, COM, Configuration, Server Console

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