File copy via FTP

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
Hi-Volt
Posts: 29
Joined: Mon Sep 12, 2011 4:52 am

File copy via FTP

Post by Hi-Volt »

Hi. I need to copy some files from a iX panel TA100 (\FlashDrive\Project\Project Files\MyFile) to a remote computer via ftp. Unfortunately the .NET Compact Framework doesn't include this functionality. I tried to use a third-party library (.dll) but it doesn't work fine.
Could you help me please?
Thank you!

User avatar
Ron L.
Posts: 214
Joined: Fri Jul 15, 2011 3:21 pm

Re: File copy via FTP

Post by Ron L. »

I'm assuming your talking about the scenario where the panel is an FTP client. I will send a sample project that uses a 3rd party library.
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

Hi-Volt
Posts: 29
Joined: Mon Sep 12, 2011 4:52 am

Re: File copy via FTP

Post by Hi-Volt »

Hi. Yes, the panel is an FTP client.
Thank you!
Best regards!

jmsmoreira
Posts: 28
Joined: Mon Apr 23, 2012 7:03 am

Re: File copy via FTP

Post by jmsmoreira »

Can you send me the example too?
I'm trying to do something similar...

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

Re: File copy via FTP

Post by JohnCZ »

Dear all,

I have problem with FTP client on T4A. Simpl code that works in previous version is not working in new version of iX Dev 2.1. SP1. I just convert it and following problem shows that System.Net,FtpClient.dll is missing.

Code: Select all

FtpClient ftp = new FtpClient(FtpServer,FtpUserName,FtpPassword);
ftp.Login();
ftpClient.download(@"C:\Users\admin\Desktop\DataT4A.csv", @"\FlashDrive\Project\Project Files\DatabaseExport\Data Loggers\DataLog1.csv");
ftp.Close();
BR
JohnCZ

Post Reply