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
Data base file to be copied from IXT12B to PC using FTP
Re: Data base file to be copied from IXT12B to PC using FTP
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
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