Hi, I need to transfer files from local machine to FTP Server. The following is the code.
WinInet ftpInet = new WinInet(); ; handle = ftpInet.internetConnect(siteDetails.FTPServer, siteDetails.UserId ? siteDetails.UserId : "anonymous", siteDetails.Password ? siteDetails.Password : "anonymous"); if (ftpInet.FtpPutFile(handle, 'C:\test.txt', '/test/OUT/test.txt';) == 0) { error(int2str(WinInet::getLastError())); } ftpInet.internetCloseHandle(handle); ftpInet.FtpPutFile is always returning 0 and throwing error. I can get files, delete file but transfering back to FTP Server is a issue. Any help is highly appreciated. Thanks, Rahul Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/