echo off rem *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--* rem *** FILE: rem *** ~matth3bishop/BatchScripts/getScripts.txt rem *** DESCRIPTION: rem *** This batch program automates the rem *** process of getting all the Batch scripts from the rem *** Yahoo Geocities ftp server for the rem *** website at rem *** http://www.geocities.com/matth3wbishop rem *** Add the -a switch when behind a firewall rem *** and when your ftp program supports the -a rem *** or -passive (linux) switch. rem *** This script also renames the Batch Scripts rem *** with a '.bat' extension so that they can rem *** be run under Win/Dos, and the script then rem *** copies the scripts into the rem *** c:\windows\command directory (which should rem *** be on the users path variable, to allow the rem *** scripts to be run from any directory rem *** PARAMETERS: rem *** 1st: the name of the Batch scripts folder rem *** (Defaults to 'BatchScripts') rem *** EXAMPLES: rem *** Example 1: rem *** 'getScripts' gets all the Batch scripts rem *** from the sub-directory 'BatchScripts' rem *** on the Yahoo Geocities matth3wbishop site rem *** Example 2: rem *** 'getScripts batch' gets all text files from rem *** the sub-directory 'batch' rem *** NOTES: rem *** The file needs to be renamed to rem *** getScripts.bat for it to run under Windows/DOS rem *** AUTHOR: rem *** m.j.bishop (matth3wbishop@yahoo.com) rem *** TESTING: rem *** Win95 Appears to work 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 mkdir BatchScriptsYahoo cd BatchScriptsYahoo @rem *** @rem *** create the ftp script file @rem *** echo user matth3wbishop password > ftpABC.txt echo hash >> ftpABC.txt echo ascii >> ftpABC.txt echo prompt >> ftpABC.txt @if "%1"=="" echo cd BatchScripts >> ftpABC.txt @if not "%1"=="" echo cd %1 >> ftpABC.txt echo mget *.txt >> ftpABC.txt @rem *** @rem *** Logon & transfer (download) the file @rem *** ftp -n -s:ftpABC.txt ftp.geocities.com @rem *** When behind a firewall use the following line @rem *** ftp -n -s:ftpABC.txt -a ftp.geocities.com del ftpABC.txt @rem *** @rem *** Rename and relocate the scripts into the @rem *** users path @rem *** copy helpInfo.txt c:\windows\command\helpInfo.txt /y copy *.txt *.bat /y copy *.bat c:\windows\command /y cd .. @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 *--*--*--*--*--*--*--*--*--*--*