Quote Site P_Dest

How do I replocate the following using your software?

Quote Site P_Dest XFBCFT

Put Filename DirName

Thanks
Nic

Using the FTP Library?

Using the FTP Library?
I take it that it is not possible?

I need to first understand what you are trying to do and with what product.

I need to first understand what you are trying to do and with what product.
I am indeed using the FTP library and I have been told by the company we are FTP'ing to I need to use that syntax.

pConnection->Command("SITE P_Dest XFBCFT")
pConnection->UploadFile(source, destination 0,0, 0,0)

pConnection->Command("SITE P_Dest XFBCFT")
pConnection->UploadFile(source, destination 0,0, 0,0)

Thanks for this but I am still getting an error - basically this is what i need to send

open ftpsite
username
password
QUOTE SITE P_DEST XFBCFT
BIN
PUT "localFile" destpath
bye

and this is what the log says

[20090609 15:55:31] SmartFTP FTP Library v1.5.9.7
[20090609 15:55:37] Resolving host name ""
[20090609 15:55:37] Connecting to Port: 21
[20090609 15:55:37] Connected to .
[20090609 15:55:37] 220 Welcome to server
[20090609 15:55:37] USER
[20090609 15:55:37] 331 Send password please
[20090609 15:55:37] PASS
[20090609 15:55:37] 230 User logged in, proceed
[20090609 15:55:37] SYST
[20090609 15:55:37] 215 UNIX XFB/UNKNOWN
[20090609 15:55:37] Detected Server Type: UNIX
[20090609 15:55:37] FEAT
[20090609 15:55:37] 211-Extensions supported
[20090609 15:55:37] 211- SIZE
[20090609 15:55:37] 211- MDTM
[20090609 15:55:37] 211- AUTH TLS
[20090609 15:55:37] 211- PBSZ
[20090609 15:55:37] 211- PROT
[20090609 15:55:37] 211 End of feat command response
[20090609 15:55:37] TYPE I
[20090609 15:55:37] 200 Command okay
[20090609 15:55:37] REST 0
[20090609 15:55:37] 500 Syntax error, command unrecognized
[20090609 15:55:37] PWD
[20090609 15:55:37] 257 "/" is current directory.
[20090609 15:55:45] SITE P_Dest XFBCFT
[20090609 15:55:45] 200 Site command accepted
[20090609 15:55:48] TYPE A
[20090609 15:55:48] 200 Command okay
[20090609 15:55:48] PASV
[20090609 15:55:48] 227 Entering passive mode ().
[20090609 15:55:48] Opening data connection to Port:
[20090609 15:55:48] STOR Test.zip
[20090609 15:55:48] 125 Start receiving 's382752.Test.zip', remote file is: Test.zip
[20090609 15:55:48] An existing connection was forcibly closed by the remote host.
[20090609 15:55:48] 36864 bytes transferred. (192 KB/s) (187 ms)
[20090609 15:55:49] 451 Requested action aborted: local error in processing

ANy ideas? Thanks for all your help.

You are uploading the file in Ascii mode. Use the default value which is Binary.
pConnection->DataTransferType = ftpDataTransferTypeBinary;

Regards,
Mat

You are uploading the file in Ascii mode. Use the default value which is Binary.
pConnection->DataTransferType = ftpDataTransferTypeBinary;

Regards,
Mat

The only options I have are
ftpDataTransferTypeASCII
ftpDataTransferTypeEBCDIC
ftpDataTransferTypeImage
ftpDataTransferTypeUnknown

Which should i use?

The only options I have are
ftpDataTransferTypeASCII
ftpDataTransferTypeEBCDIC
ftpDataTransferTypeImage
ftpDataTransferTypeUnknown

Which should i use?


I keep getting ftpErrorWrongReply as my response. What could that mean?

Use ftpDataTransferTypeImage

Post the log if you get an error.

Regards,
Mat

Use ftpDataTransferTypeImage

Post the log if you get an error.

Regards,
Mat

I keep getting sfFTPLib.enumError.ftpErrorWrongReply

Here is the log:

[20090610 12:13:21] SmartFTP FTP Library v1.5.9.7
[20090610 12:13:27] Resolving host name
[20090610 12:13:27] Connecting to Port: 21
[20090610 12:13:27] Connected to
[20090610 12:13:27] 220 Welcome to XFB Gateway FTP server
[20090610 12:13:27] USER
[20090610 12:13:27] 331 Send password please
[20090610 12:13:27] PASS
[20090610 12:13:27] 230 User logged in, proceed
[20090610 12:13:27] SYST
[20090610 12:13:27] 215 UNIX XFB/UNKNOWN
[20090610 12:13:27] Detected Server Type: UNIX
[20090610 12:13:27] FEAT
[20090610 12:13:27] 211-Extensions supported
[20090610 12:13:27] 211- SIZE
[20090610 12:13:27] 211- MDTM
[20090610 12:13:27] 211- AUTH TLS
[20090610 12:13:27] 211- PBSZ
[20090610 12:13:27] 211- PROT
[20090610 12:13:27] 211 End of feat command response
[20090610 12:13:27] TYPE I
[20090610 12:13:27] 200 Command okay
[20090610 12:13:27] REST 0
[20090610 12:13:27] 500 Syntax error, command unrecognized
[20090610 12:13:27] PWD
[20090610 12:13:27] 257 "/SCHUHIMG" is current directory.
[20090610 12:13:28] SIZE /SCHUHIMG/Test3.zip
[20090610 12:13:28] 550 File not found
[20090610 12:13:41] SITE P_Dest XFBCFT
[20090610 12:13:41] 200 Site command accepted
[20090610 12:13:46] PORT 10,0,0,233,6,142
[20090610 12:13:46] 200 Data port accepted
[20090610 12:13:46] STOR SCHUHIMG/Test3.zip
[20090610 12:13:46] 451 Requested action aborted: local error in processing
[20090610 12:13:54] QUIT
[20090610 12:13:54] 221 Logged out
[20090610 12:13:54] Server closed connection

You are using a path instead of a filename in UploadFile() function for the destination filename. Use "Test3.zip" instead of "SCHUHIMG/Test3.zip"

You are using a path instead of a filename in UploadFile() function for the destination filename. Use "Test3.zip" instead of "SCHUHIMG/Test3.zip"

How do I then replicate PUT test4.txt SCHUHIMG?

Thanks

Hello Nicola ..

Please renew the maintenance plan for your license. Your maintenance plan (technical support) expired more than a year ago.
You can contact our sales department for assistance.

Regards,
Mat

Hello Nicola ..

Please renew the maintenance plan for your license. Your maintenance plan (technical support) expired more than a year ago.
You can contact our sales department for assistance.

Regards,
Mat


How do I do that and how much is it?

Please contact sales@smartftp.com

Thank you
Mat

Mat please can you confirm that you can help me with my problem before I pay out more money?

Thanks
Nic

Yes we can help you of course.