How to transfer with MSINET to/from ftp server ?

bdun
Member Posts: 9
Hi all,
have someone an example on how to make a file transfer (up or download) to/from an ftp site, using the standard ocx MSINET ?
I just want to make a little form in Navision 4.0 to transfer files to and from an ftp site ...
Thanks in advance !
have someone an example on how to make a file transfer (up or download) to/from an ftp site, using the standard ocx MSINET ?
I just want to make a little form in Navision 4.0 to transfer files to and from an ftp site ...
Thanks in advance !
0
Comments
-
CREATE(autFTP); autFTP.Protocol = icFTP; autFTP.RemoteHost = [server hostname]; autFTP.UserName = [User Name]; autFTP.Password = [Password]; autFTP.Execute("Get " + [RemoteFileName] + " " + [LocalFileName]);
Nuno Maia0 -
Thanks a lot, nunomaia !
But can you tell me what's the value of the variable icFTP ?
Thanks in advance !0 -
0 - Unknown.
1 - Default protocol.
2 - FTP. File Transfer Protocol.
3 - Reserved for future use.
4 - HTTP. HyperText Transfer Protocol.
5 - Secure HTTP.0 -
Thanks nunomaia !
I'm looking for the right automation to define the variable autFTP
Don't find it
Can you tell me what for automation you are using ???
Sorry for my immense unknowledge ... !0 -
Seems to be "Microsoft Internet Transfer Control 6.0 (SP6)"?!Kind regards,
Jan Hoek
Product Developer
Mprise Products B.V.0 -
I think the OCX is installed with Microsoft Visual Basic 5.0 and 6.0. From what I've seen, it works like a charm.
Tip: From my personal experience, I can tell you that you sometimes need to add a SLEEP statement to your code, to make sure the Internet Transfer Control can finish its work before it goes out of scope and is destroyed.
Tip: You can also use the StillProcessing property to test whether the transfer is complete.
Tip: Username and password can also be specified as part of the URL: ftp://username:password@servernameKind regards,
Jan Hoek
Product Developer
Mprise Products B.V.0 -
Hello,
Maybe somebody can help me out?
At customer location I want to use the msinet ocx.
It is not available on the desktops....
Did some browsing on the mighty www: found a version (not perfect - SP4).
After installation (regsvr32 etc etc) I tried to use it in a codeunit.
I got the error: ..."INET eist een disign time licentie. U kunt een dergelijkelicentie echter onmogelijk bekomen. Zorg......"
2 Questions:
1) Can somebody post the latest MSINET.OCX (or mail it)
2) Tips on how to register it.
Thanks, regards, Peter0 -
Did you create a new ocx variable?
If you copy a old variable the license check is skipped if I'm correct. At least this works this way for the common dialog thingy.0 -
Which automation do you use :?:Do you make it right, it works too!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 320 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