Hi, I am attempting to upload files to a Tradanet server that only accepts a custom put command using the following syntax:
put filename %senderid%recipientid%filetype%transfermode I have tried sendSiteCommand(string cmd) and sendCommand(string cmd), where cmd is a single string containing the put command with arguments, but the process returns an error: 501: 501-Syntax errors in parameter. usage: ['single' | 'multiple'] I assumed that the send[Site]Command(strArg) would not attempt to parse the argument, so this is coming from the server, however the same command works instantly when sent via a batch file/ftp script from the same project. Could anyone please assist me? I am new to both Java and CommonsNet, and have obviously missed something important. Many thanks, Samantha Bausch & Lomb 150 Years of Perfecting Vision, Enhancing Life (TM) EMAIL DISCLAIMER Please Note: The information contained in this message may be privileged and confidential, protected from disclosure, and/or intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any disclosure, distribution, copying or other dissemination of this communication is strictly prohibited. If you received this communication in error, please immediately reply to the sender, delete the message and destroy all copies of it. Thank You --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
