Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Data base file to be copied from IXT12B to PC using FTP
PostPosted: Thu Nov 20, 2014 8:00 pm 

Joined: Mon Sep 17, 2012 12:38 am
Posts: 11

Offline
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


 Profile  
 
 Post subject: Re: Data base file to be copied from IXT12B to PC using FTP
PostPosted: Tue Mar 03, 2015 8:23 am 

Joined: Wed Jun 27, 2012 1:17 am
Posts: 73
Location: CZ

Offline
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


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron