Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
1.8k views
in .NET FTP by
hello. How can I connect AS400 AND AS400 FOLDERS. ı DİDNT SEE AS400 FORLDERS. A EXEPTİON FOLLOWS WHEN I WANT TO SEE AS400 FORLDER AND FİLES. pLEASE HELP WHAT CAN I DO FOR CONNECT AS400 AND SEE AS400 FİLES AND FOLDER. ı CAN USE WİNXP. ı WANT TO CONNECT AS400 TO USE FTP. ı WANT TO DOWNLOAD FİLES AND UPLOAD FİLES.

THANKS...

1 Answer

0 votes
by (51.6k points)
I suggest you first use FileZilla of some other windows FTP client to connect to your AS400 server. This will confirm that it is working OK. After that, connect using something like the following C# code:
  FTPConnection cxn= new FTPConnection();
  cxn.ServerAddress = "myas400server.mydomain.com";
  cxn.UserName = "myusername";
  cxn.Password = "mypassword";
  cxn.Connect();
  cxn.DownloadFile("C:\mydirectory\localfilename", "remotefilename");
  cxn.Close();

or the following VB.NET code:
  Dim cxn AS new FTPConnection()
  cxn.ServerAddress = "myas400server.mydomain.com"
  cxn.UserName = "myusername"
  cxn.Password = "mypassword"
  cxn.Connect()
  cxn.DownloadFile("C:\mydirectory\localfilename", "remotefilename")
  cxn.Close()


- Hans (EDT)

Categories

...