Home Forums .NET libraries Xceed SFTP/FTP for .NET Read from ftp server

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #20749 |

    hello

    I have just download ‘Xceed FTP Library v1.1’.XceedFtp and make this code

    CREATE(ftp);
    http://ftp.ServerAddress(‘ftpskb.itgruppenas.dk’);
    http://ftp.UserName(‘Username’);
    http://ftp.Password(‘Password’);
    http://ftp.Connect();
    http://ftp.ReceiveFile(‘/JAS/Codeunit90G.txt’,0,’d:\JAS\Codeunit90G.txt’);
    http://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?

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by JAS21 (had 2719 views)

    User (Old forums)
    Member
    Post count: 23064

    Try using the regular Windows backslash in the file path, like this :

    http://ftp.ReceiveFile(‘\JAS\Codeunit90G.txt’,0,’d:\JAS\Codeunit90G.txt’);

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by André (had 3324 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.