View Single Post
Old 26th January 2019, 17:35   #9
r2du-soft
Senior Member
 
r2du-soft's Avatar
 
Join Date: Nov 2013
Location: Iran
Posts: 343
thanks Anders
i found a dll:

Download link:
https://www.limilabs.com/static/ftp/Ftp.zip


Sample of code C#
HTML Code:
using (Ftp client = new Ftp())
{
    client.Connect("ftp.example.org");
    client.Login("user", "password");
    client.CreateFolder("reports");
    client.Rename("reports", "reports 2010");
    client.DeleteFolder("reports 2010");
    client.Close();
}

now i want know is possible use from dll in nsis?

i try this parameters but not work:
HTML Code:
Section

InitPluginsDir
SetOutPath "$pluginsdir"
File "DLL\Ftp.dll"

System::Call "Ftp::Connect('$FTP_Root_Address')"
System::Call "Ftp::Login('$FTP_Root_UserName', '$FTP_Root_PassWord')"
System::Call "Ftp::CreateFolder('reports')"

SectionEnd
r2du-soft is online now   Reply With Quote