echo off rem *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--* rem *** FILE: rem *** http://www.geocities.com/matth3bishop/eg/batch/install-retrovox.txt rem *** DESCRIPTION: rem *** This script is designed to UNinstall 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 *** @echo WARNING WARNING this deletes the entire retrovox system @echo on the 192.168.0.100 server @echo Press CONTROL C to abort now or ENTER to continue pause echo user root %1 > junk.txt echo hash >> junk.txt echo ascii >> junk.txt echo prompt >> junk.txt echo cd ideas >> junk.txt echo cd manage >> junk.txt echo mdelete * >> junk.txt echo cd notepad >> junk.txt echo mdelete * >> junk.txt echo cd .. >> junk.txt echo rmdir notepad >> junk.txt echo cd old-data >> junk.txt echo mdelete * >> junk.txt echo cd .. >> junk.txt echo rmdir old-data >> junk.txt echo cd .. >> junk.txt echo rmdir manage >> junk.txt echo cd product-data >> junk.txt echo mdelete * >> junk.txt echo cd css >> junk.txt echo mdelete * >> junk.txt echo cd .. >> junk.txt echo rmdir css >> junk.txt echo cd docs >> junk.txt echo mdelete * >> junk.txt echo cd .. >> junk.txt echo rmdir docs >> junk.txt echo cd lib >> junk.txt echo mdelete * >> junk.txt echo cd .. >> junk.txt echo rmdir lib >> junk.txt echo cd .. >> junk.txt echo cd manage >> junk.txt echo mput * >> junk.txt echo cd .. >> junk.txt echo rmdir product-data >> 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 *--*--*--*--*--*--*--*--*--*--*