Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ftpPutFile Failed: Get:LastError returned 123 1

Status
Not open for further replies.

shoo

Programmer
Mar 22, 2003
8
IN
Hi, I was trying to use WinInet APIs.

The code segment that set this error code is given below:
Code:
bResult = ::FtpPutFile(
            hFTPSession,		
            "c:\ftptest.txt",
            "ftptest.txt",
            FTP_TRANSFER_TYPE_BINARY,
            0);
Used 'InternetOpen', 'InternetConnect' prior to this API. FTP Service is on a LINUX machine & using direct access in 'InternetOpen'.

Any help on this is highly appreciated. -Thanks


ps: Error 123 is "The filename, directory name, or volume label syntax is incorrect" ERROR_INVALID_NAME.
 
Hi,

Use a double backslash, "c:\\ftptest.txt" instead of "c:\ftptest.txt". Marcel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top