Move file over FTP from Navision.
eromein
Member Posts: 589
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
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."
If it was hard to write, it should be hard to understand."
0
Comments
-
I once used a tool (unfortunately I have forgotten its name) that maps any ftp site to a drive letter. Then you can use any operation simililar to real drives.
Regards
Thomas0 -
I don't know the syntax for ftp, and I've forgotten exactly how it works, but you can write a *.bat file with FTP commands in Navision code and execute the file in a SHELL command.0
-
A few years ago I developped an FTP Scheduler that I've
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,ftp0 -
Hi Emiel,
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,
Francois0 -
fl,
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
Milly0 -
0
-
Thanx ara3n,
I saw this post yet. It's a nice way, I'll try it.
Milly0 -
An other solution to do this is via a script and Windows Sceduler
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 :P0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

