Hi,
Does anybody have any experience with copying files from a local HD to an ftp site from within Navision?
Off course I don't want any login ids or password to be visible anywhere.
Cheers,
Emiel Romein
"Real programmers don't comment their code.
If it was hard to write, it should be hard to understand."
0
Comments
Regards
Thomas
RIS Plus, LLC
called "Cute FTP Scheduler" (because it uses to the Cute FTP API), this tool perform around 1000 downloads/upload a days (to the subsidiaries, outsource Warehouse, shippers and various other trading partners)
This tool is in production since 2003 and until very recently
the company I was working for was still using it.
http://www.mbsonline.org/forum/topic.as ... s=cute,ftp
I bought a component (xceed data manipulation suite) at http://www.xceedsoft.com/products/DMS/index.aspx to solve this problem. You can do a lot more then only ftp send and receive but also zip, unzip,...
The code I used:
ftp automation 'Xceed FTP Library v1.1'.XceedFtp
//get files by ftp
CREATE(ftp);
ftp.ServerAddress('ftp.techdata.be');
ftp.UserName('EDI00xxxxxx');
ftp.Password('HereYourPassword');
ftp.Connect();
ftp.ReceiveFile('/vip/pricelists/txt/bebat.zip',0,'c:\hsc\bebat.zip');
ftp.Disconnect();
CLEAR(ftp);
It works great for more then a year on daily base.
Regards,
Francois
Consultant-Developper
http://www.CreaChain.com
Thank you for the hint!
seems to be a nice Automation.
How can besolved to download several files and delete them after?
xFTP.ReceiveMultipleFiles('*.dat','C:\Temp\',FALSE) can download all files,
xFT.DeleteFile ('*.dat')
returns a an error "File can nor be opened by ftp server".
regards
Milly
here is another howto.
http://www.revolution1210.com/article.asp?r0=3&r1=81
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I saw this post yet. It's a nice way, I'll try it.
Milly
Rem Script Start
open FTP Adress (Without FTP)
Account
Password
lcd Target Pathascii
get Data.txt
close
quit
REM Script End
Save that script intio a Script.src File
Create a sceduled Task Liker c:\windows\ftp.exe –v –s:"Path to Script.src“
This will do your Job :P