FTP server

jasjas Member Posts: 9
edited 2006-04-24 in Navision Attain
Hello

I have just downloaded 'Xceed FTP Library v1.1'.XceedFtp and installed.

Made this code in a codeunit.

CREATE(ftp);
ftp.ServerAddress('ftpskb.itgruppenas.dk');
ftp.UserName('Username');
ftp.Password('Password');
ftp.Connect();
ftp.ReceiveFile('/JAS/Codeunit90G.txt',0,'d:\JAS\Codeunit90G.txt');
ftp.Disconnect();
CLEAR(ftp);

but when i run this code i got this message

The remote file could not be opened by the FTP server.

What is wrong?
Javaid Sethi

Comments

  • ara3nara3n Member Posts: 9,256
    can't find the file on ftp server? '/JAS/Codeunit90G.txt'

    Make sure you put the full path?


    ftp to from cmd prompt and repeat the commands do they work there?
    Ahmed Rashed Amini
    Independent Consultant/Developer


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