Page 1 of 1

Data base file to be copied from IXT12B to PC using FTP

Posted: Thu Nov 20, 2014 8:00 pm
by Tushar123
Dear All

I have T12B HMI and need to copy data base file (.sdf) from T12B to PC using FTP at set interval base.

Any one have tried before.

Can i have sample program

Regards

Tushar

Re: Data base file to be copied from IXT12B to PC using FTP

Posted: Tue Mar 03, 2015 8:23 am
by JohnCZ
Hi,

Why you want send the database.sdf through FTP?? If you want through FTP You need to script your own FTP client and it's not so easy.

If the PC and T12B is on the same network just used FileCopy method and add using System.IO.

using System.IO;


Exampl for Button

void Button_Click(System.Object sender, System.EventArgs e)
{
try
{
File.Copy(@"\FlashDrive\Project\database.sdf", "location, where you want to have database file in PC. In some times is better to used IP");
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
}


BR
Jan