Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 16869 invoked from network); 2 Jun 2009 11:14:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jun 2009 11:14:29 -0000 Received: (qmail 76647 invoked by uid 500); 2 Jun 2009 11:14:40 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 76535 invoked by uid 500); 2 Jun 2009 11:14:40 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 76525 invoked by uid 99); 2 Jun 2009 11:14:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2009 11:14:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kevindougan@hotmail.com designates 65.54.246.95 as permitted sender) Received: from [65.54.246.95] (HELO bay0-omc1-s23.bay0.hotmail.com) (65.54.246.95) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2009 11:14:30 +0000 Received: from BAY104-W22 ([65.54.175.122]) by bay0-omc1-s23.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 2 Jun 2009 04:14:09 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_ee77da00-4400-46e5-8557-5d040a57c049_" X-Originating-IP: [192.127.94.7] From: Kevin Dougan To: Subject: Question about FTPClient.sendCommand() Date: Tue, 2 Jun 2009 07:14:09 -0400 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 02 Jun 2009 11:14:09.0781 (UTC) FILETIME=[40640250:01C9E373] X-Virus-Checked: Checked by ClamAV on apache.org --_ee77da00-4400-46e5-8557-5d040a57c049_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Greetings! =20 I have been searching around a lot=2C trying to figure out how to properly = use the FTPClient.sendCommand() API method=2C but to no avail! Perhaps some= one here can answer my question very quickly...? Basically=2C I want to implement a "dumb" FTP class who handles "batch proc= essing". I thought I could just read lines from a file=2C and then pass the= m through to an FTP Server using the sendCommand() method=2C but it always = replies with "command not understood". Am I totally off track with what I want to do here? Am I using the API meth= od incorrectly or for the wrong purpose? =20 I am trying to avoid parsing every command=2C doing a String compare on eac= h word=2C and then trying to match it against a specific API method (storeF= ile()=2C retrieveFile()=2C etc.)=2C depending on each String I parse...big= =2C long IF blocks are ugly! Thanks!=20 Kevin=20 KevinDougan@Hotmail.com=20 _________________________________________________________________ Attention all humans. We are your photos. Free us. http://go.microsoft.com/?linkid=3D9666046= --_ee77da00-4400-46e5-8557-5d040a57c049_--