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 Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/ [Non-text portions of this message have been removed]