VB.Net FTP help

lmeljalb

New member
Joined
Jun 22, 2007
Messages
1
Programming Experience
Beginner
I have automated an FTP session in my vb.net code with the following code:

Dim lngINet = InternetOpen("MyFTP Control", 1, vbNullString, vbNullString, 0)
Dim lngINetConn = InternetConnect(lngINet, "XXXX", 21, "XXXX", "XXXX", 1, 0, 0)
Dim blnRC = FtpPutFile(lngINetConn, "D:\ForEx\FEX\MOVEX\" & month & year & "\fxRatesSAP" & foday & fomonth & foyear & ".dat", "MEC$\ExchangeRate_Inbound\ECURRA2.FILE", 1, 0)
InternetCloseHandle(lngINetConn)
InternetCloseHandle(lngINet)

No matter what...whether the ftp fails or not...the blnRC returns "True". What am I doing wrong?

TIA for your help!
 
Back
Top