Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.9k views
in .NET FTP by (160 points)
Hi,

I need to run the following ftp command after connecting to the server:

quote site LRECL=200 RECFM=VB BLOCKSIZE=204 FILETYPE=SEQ CY PRI=10 SEC=2

I tried using the "Quote" function as follows:

string[] validCodes = new string[7] {"LRECL=200", "RECFM=VB", "BLOCKSIZE=204", "FILETYPE=SEQ", "CY", "PRI=10", "SEC=2"};
ftp.Quote("SITE", validCodes);

but I get the following error:

EnterpriseDT.Net.Ftp.FTPReply ValidateReply(EnterpriseDT.Net.Ftp.FTPReply, System.String[])
Description: SITE not necessary; you may proceed (code=202)

Could someone please point me to the right direction?

Thanks

3 Answers

0 votes
by (162k points)
Try Site("LRECL=200 RECFM=VB BLOCKSIZE=204 FILETYPE=SEQ CY PRI=10 SEC=2")
0 votes
by (160 points)
Thanks Bruce, that worked, however the next line of my code which tries to put a file failed. I am trying to do the following:

FTP> put myfile.txt 'KFT.TRN.D178KE.ETD(+1)'

How do I achieve this with edtFTP?

Thanks.
0 votes
by (162k points)
Please post what you did and how it failed (stack trace or log).

Categories

...