echo off
rem *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*
rem *** FILE:
rem ***   http://www.geocities.com/matth3bishop/eg/batch/retrovox-ftp-login.txt
rem *** DESCRIPTION:
rem ***   This batch program automates the process of logging in to the 
rem ***   Retrovox ftp server. 
rem
rem ***   Add the -a switch when behind a firewall
rem ***   and when your ftp program supports the -a
rem ***   or -passive (linux) switch.
rem *** PARAMETERS:
rem ***   1) The file to upload to the Retrovox Server
rem ***   2) The directory on the Retrovox Server to place the file
rem *** EXAMPLES:
rem ***   Example 1:
rem ***     retrovox-ftp-login
rem ***       This should log-in to the Retrovox ftp server
rem *** NOTES:
rem *** AUTHOR: 
rem ***   m.j.bishop (matth3wbishop@yahoo.com)
rem *** SEE ALSO:
rem ***   ~matth3wbishop/BatchScripts/putf.txt
rem ***     uploads a file to the 'matth3wbishop' geocities
rem ***     Web-Site
rem ***   getf
rem ***   getBigP
rem ***   putBigP
rem ***   ~matth3wbishop/BatchScripts/logonYahoo.txt
rem ***     Logs onto the same site (WinMe, Win98 only)
rem *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--* 

echo on

@rem ***
@rem *** create the ftp script file
@rem ***

echo user retrovox password > junk.txt
echo hash >> junk.txt
echo ascii >> junk.txt
echo cd %2 >> junk.txt
echo put %1 >> junk.txt
echo quit >> junk.txt
        
@rem ***                                  
@rem *** Logon & transfer the file
@rem ***
ftp -n -s:junk.txt retrovox.com.au
@rem *** When behind a firewall use the following line
@rem ***  ftp -n -s:junk.txt -a ftp.geocities.com
del junk.txt


@echo *--*--*--*--*--*--*--*--*--*--*
@echo Dear User,
@echo  Please see the comments in the batch
@echo  file for more information
@echo  about how to use this script
@echo *--*--*--*--*--*--*--*--*--*--*