JOSHFTP.EXE (c) 2010 Josh Levine [http://josh.com/joshFTP]

Syntax: FTP address port timeout command1 command2 [!commandfile] ... 

Where:  address is the tcpip address to connect to

        port is the tcpip port to connect to

        timeout is maximum number of seconds to wait on a read



Each command will be sent and the response processed. 

Commands with embeded spaces should be in quotes like "USER me"

Use '+fname' and '-fname' to set up a file transfer (+=send,-=recieve).



Use !filename to read commands from a file. One command per line.



Program will quit on any protocol or network error.



Returns:

        0 = Success

        1 = Novell stack not found

        2 = Failure connecting to control socket

        3 = Failure reading control socket

        4 = Control line response too short

        5 = Servered returned 4xx error

        6 = Servered returned 332 error

        7 = Lolcal file name/direction not specified (+/-)

        8 = Data socket already opne when PASV issued

        9 = Error parsing address from PASV response

       10 = Error parsing port from PASV response

       11 = Error connecting data socket

       12 = No data channel open yet. Use PASV first.r
       13 = Error creating local data file

       14 = Error reading from data socket

       15 = Error writing to local data file

       16 = Error opening local data file

       17 = Error reading from local data file

       18 = Timeout on socket write

       19 = Error writing to data socket

       20 = Error writing FTP command to  control socket

       21 = Error sending FTP command on control socket

       22 = Local data filename must be 12 chars or less

       23 = Error opening local command file

