Options

FTP communications from within NAV

tarkmylertarkmyler Member Posts: 57
edited 2016-03-03 in NAV Three Tier
I'm wondering if anyone has ever coded ftp communications inside of NAV using DOTNET calls. I've always used an external, script capable ftp client and then written the script, and shell command file to call the ftp client and passed the script on the fly using a System.Diagnostics.Process call to kick off the command. Relying on the 3rd party ftp client has some real drawbacks.

I've seen the System.Net.FTPWebRequest references in the post here ...
http://forum.mibuso.com/discussion/comment/296536#Comment_296536

However, I need more than a simple transfer... SSH2 with Putty Private/Public keys, etc.

Thanks!
Mark Tyler
Pacific City, OR

Best Answer

Answers

  • Options
    OldNavDogOldNavDog Member Posts: 88
    I just use WinSCP and create .bat files, then call it using a SystemDiagnosticsProcess .NET call. WinSCP HAS a .NET interface (supposedly); but I could never get it to work. So I just punted and use the old, reliable "batch file" method.
    Experience is what you get, when you don't get what you want. --Anon.
  • Options
    tarkmylertarkmyler Member Posts: 57
    Thanks for the comments. I use the OldNavDog method, but would like to leverage some of my new spiffy System.Reflexion muscles in C/Side. I will give the Erik's suggestion a test drive!
    Mark Tyler
    Pacific City, OR
  • Options
    ara3nara3n Member Posts: 9,255
    Here is a working solution using WinSCP.

    dynamicsuser.net/nav/b/ara3n/posts/moving-files-in-nav-with-ftp
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.