Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
9.6k views
in .NET FTP by (480 points)
Dear Sir,

I used "edtFTPnet.dll" to creat one program, I can download file from as400. I get one problem, I need set "QUOTE TYPE C 950" to AS400 ftp server.
How to send this subcommand to AS400 FTP server?
Thank you!!

11 Answers

0 votes
by (480 points)
I found the problem, the main point was setting " FtpConnection1.TransferType = EnterpriseDT.Net.Ftp.FTPTransferType.BINARY" when I finish upload or download
Code of VB:
Try
If ChkASC.Checked Then
If CHKAS400.Checked Then
FtpConnection1.InvokeFTPCommand(strQuoteType, "200")
Else
FtpConnection1.TransferType = EnterpriseDT.Net.Ftp.FTPTransferType.ASCII
End If
Else
FtpConnection1.TransferType = EnterpriseDT.Net.Ftp.FTPTransferType.BINARY
End If

ListBox1.Items.Add("Download: " & TextBox5.Text)
FtpConnection1.DownloadFile(TextBox4.Text & TextBox5.Text, TextBox5.Text)

FtpConnection1.TransferType = EnterpriseDT.Net.Ftp.FTPTransferType.BINARY

Catch ex As Exception
ListBox1.Items.Add("Err: " & ex.Message)
End Try

Categories

...