echo off
rem *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*
rem *** FILE:
rem ***   http://www.geocities.com/matth3bishop/eg/batch/install-retrovox.txt
rem *** DESCRIPTION:
rem ***   This script is designed to install the 'retrovox' system on a
rem ***   web-server which supports standard ftp access, but possibly
rem ***   does not support a telnet style or ssh style shell account.
rem ***   For this reason, it is not possible to simply upload a tarball
rem ***   and unzip it in the right place.
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 *** EXAMPLES:
rem *** NOTES:
rem *** AUTHOR: 
rem ***   m.j.bishop (matth3wbishop@yahoo.com)
rem *** SEE ALSO:
rem *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--* 

echo on

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

set LOCALCODE=\tools\retrovox\usr50\home\retrovox\public_html 
echo user root %1 > junk.txt
echo hash >> junk.txt
echo ascii >> junk.txt
echo prompt >> junk.txt
echo cd ideas >> junk.txt
echo mkdir manage >> junk.txt
echo mkdir product-data >> junk.txt
echo cd manage >> junk.txt
echo mkdir notepad >> junk.txt
echo mkdir old-data >> junk.txt
echo cd .. >> junk.txt
echo cd product-data >> junk.txt
echo mkdir css >> junk.txt
echo mkdir docs >> junk.txt
echo mkdir lib >> junk.txt
echo cd .. >> junk.txt
echo cd manage >> junk.txt
echo lcd %LOCALCODE%\manage >> junk.txt 
echo mput * >> junk.txt

echo quit >> junk.txt
        
@rem ***                                  
@rem *** Logon create the directories and transfer the files
@rem ***
ftp -n -s:junk.txt 192.168.0.100 
@rem *** When behind a firewall use the following line
@rem ***  ftp -n -s:junk.txt -a 192.168.0.100 
@rem 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 *--*--*--*--*--*--*--*--*--*--*