NAV FTP Client v1.1

AdministratorAdministrator Member, Moderator, Administrator Posts: 2,495
edited 2015-02-03 in Download section
NAV FTP Client
Automation control for Dynamics NAV to Upload and Download files from FTP. Track progress within NAV with a dialog window.

Includes setup.exe for installation.

http://www.mibuso.com/dlinfo.asp?FileID=1449

Discuss this download here.

Comments

  • AdministratorAdministrator Member, Moderator, Administrator Posts: 2,495
    NAV FTP Client v1.1
    Automation control for Dynamics NAV to Upload and Download files from FTP. Track progress within NAV with a dialog window.

    New: Set passive mode, Delete file on FTP and list FTP directoty.

    Includes setup.exe for installation.

    Ver 1.1
    New functions:
    DeleteFileOnFTPServer()
    ListFTPDirectory()
    GetDirectoryList()

    New Property
    Passive

    Sample code:
    MESSAGE(NAVFTP.DeleteFileOnFTPServer('home/database.fdb'));
    
    NoOfLines := NAVFTP.ListFTPDirectory('home',FALSE);
    IF NoOfLines > 0 THEN
      FOR i := 1 TO NoOfLines DO
        MESSAGE(NAVFTP.GetDirectoryList(i));
    

    http://www.mibuso.com/dlinfo.asp?FileID=1449

    Discuss this download here.
  • MvhHHMvhHH Member Posts: 1
    Hi

    I have been looking for an FTP solution without the use of the SHELL command in NAV.
    As usual, Mibuso comes to the rescue :).

    I have been playing around with your solution for a bit now, but the UploadFile function returns an error. The function GetDirectoryList works fine, so the FTP connection is definitly there.
    Attached you'll find a screenshot of the error.

    Raw translation of the error:
    "Cannot convert an object of type System.ComponentModel.AsyncOperation to type UploadBitsState."

    I am running this on Windows 7 - 64 bit, in NAV 2009 SP 1.

    Kind regards

    Marten


    EDIT: The problem was a faulty 'FROM' parameter. Of course 'C:\test,txt' does not work. It had to be 'C:\test.txt'...
  • taxavtaxav Member Posts: 1
    thanks you.
    It run fine.

    I need a RENAME function because when COPY the LS return it.
  • k0n4nk0n4n Member Posts: 25
    Hello,

    I installed the code on a codeunit, and to run it gives me authentication error. The username and password are correctly spelled ...

    Greetings.
  • Hon7inHon7in Member Posts: 1
    Hi,

    I think that passive mode doesn't work. When I set passive(True) then Automation return OK but server retur error "Entering Passive Mode(37,157,196,165,201,211)".

    CREATE(NavFTP,TRUE,TRUE);
      NavFTP.Username("FTP UserName");
      NavFTP.Password("FTP Password");
      NavFTP.Host("FTP Address");
      NavFTP.Passive(TRUE);
    
  • JuhlJuhl Member Posts: 724
    Cant seem to get the DownloadFile function to Work.
    It is supposed to take 2 paramters, but will only accept one.

    Anyone tried this?
    Follow me on my blog juhl.blog
  • itservices_pedrossitservices_pedross Member Posts: 0
    hi,

    i've tried to download a file from our FTP Site, but (without Errors) the file is empty (0 bytes)

    can someone help?
Sign In or Register to comment.