Hi Support,
Here is our code:
using System;
using System.IO;
using EnterpriseDT.Net;
class UL
{
/// <summary>
/// The main entry point for the application.
/// </summary>
///
[STAThread]
static void Main(string[] args)
{
EnterpriseDT.Net.Ftp.FTPConnection FtpConn = new EnterpriseDT.Net.Ftp.FTPConnection();
string Source=string.Empty,Destination=string.Empty,FtpAddress=string.Empty,FtpUserName=string.Empty,FtpPwd = string.Empty;
StreamReader sr= new StreamReader("abc.ini");
Source=sr.ReadLine();
FtpAddress = sr.ReadLine();
FtpUserName = sr.ReadLine();
FtpPwd = sr.ReadLine();
Destination =sr.ReadLine();
sr.Close();
FtpConn.UserName = FtpUserName;
FtpConn.Password = FtpPwd;
FtpConn.ServerAddress = FtpAddress;
string Fname = string.Empty;
try
{
FtpConn.Connect();
string[] dir = Directory.GetFiles(Source ,"*.*");
foreach(string s in dir)
{
Fname=s.Substring(s.LastIndexOf("\\"));
FtpConn.UploadFile(s,Destination + Fname);
}
}
catch(EnterpriseDT.Net.Ftp.FTPException e)
{
FtpConn.Close();
}
}
Please let us know where can we use the encoding part in the above mentioned code. Please its very urgent.
Thanks for your kind attention and support.
Many Thanks
Kris