FtpWebRequest Connecting to an AS/400

前端 未结 4 1601
一整个雨季
一整个雨季 2021-01-25 04:01

I need to download some files via ftp from an old AS/400 server. My code looks more or less like:

FtpWebRequest _request = (FtpWebRequest)WebRequest.Create(\"ft         


        
4条回答
  •  情深已故
    2021-01-25 04:38

    I've had this message often in the past, and it meant that I forgot to change the name format.

    There are two name formats possible when doing FTP with an AS400, and it can be changed with the FTP command NAMEFMT:

    0 is for the library system files (library\filename.member)

    1 is for the files in the IFS, where a CSV file would be

    By default, it is set to 0.

    Change it to 1 and it should work. However I'm not sure how it can be changed with a FtpWebRequest.

提交回复
热议问题