echo off rem *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--* rem *** FILE: rem *** ~matth3bishop/BatchScripts/putfBigPond.txt rem *** DESCRIPTION: rem *** This batch program automates the rem *** process of putting a file on to the rem *** Telstra BigPond ftp server for the rem *** website at rem *** http://www.users.bigpond.com/janebishop rem *** The script puts the file into the home rem *** directory and uses ascii mode. rem *** The first parameter is the file to put rem *** onto the bigpond server. rem *** Add the -a switch in the code when behind a firewall rem *** and when your ftp program supports the -a rem *** or -passive (linux) switch rem *** PARAMETERS: rem *** 1st: the file to upload. rem *** 2nd: is a subdirectory rem *** 3rd: allows the file to be uploaded rem *** in binary mode (eg MS Word Documents) rem *** EXAMPLES: rem *** Example 1: rem *** 'putf SomeTextFile.txt' puts the file named rem *** SomeTextFile.txt into the home directory of rem *** the janebishop bigpond site rem *** The url of the file will be rem *** http://www.users.bigpond.com/SomeTextFile.txt rem *** Example 2: rem *** 'putf index.html Resumes' uploads an html rem *** file into the Resumes subdirectory on the rem *** matth3wbishop geocities site. Its url will be rem *** http://www.users.bigpond.com/janebishop/Resumes/index.html rem *** or just rem *** http://www.users.bigpond.com/janebishop/Resumes rem *** Example 3: rem *** 'putf aLetter.doc cv -binary' rem *** uploads the Microsoft Word document aLetter.doc rem *** into the cv subdirectory on the janebishop site rem *** using binary mode. -b and -bin are also rem *** acceptable aliases. rem *** NOTES: rem *** The file needs to be renamed to rem *** putf.bat for it to run under Windows/DOS rem *** This script employs the -s:ScriptFile feature rem *** of the built-in ftp program on MS Windows rem *** computers rem *** AUTHOR: rem *** m.j.bishop (matth3wbishop@yahoo.com) rem *** TESTING: rem *** Win95 Appears to work rem *** SEE ALSO: rem *** putf, putGeo rem *** getf, putGeo rem *** putBigP, putfBP rem *** logonYahoo, logGeo (Win98 & WinMe only) rem *** pushf (Not written) Will place a given file rem *** on both the 'matth3wbishop' Geocities site rem *** an also in the mjb sub-folder of the rem *** janebishop account of the BigPond Server. rem *** dumpGeo rem *** gets the whole 'geocities; site ? rem *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--* echo on @rem *** @rem *** create the ftp script file @rem *** echo user janebishop magicfootball > ftpABC.txt echo cd mjb >> ftpABC.txt echo hash >> ftpABC.txt echo ascii >> ftpABC.txt @if not "%2"=="" echo cd %2 >> ftpABC.txt @if "%3"=="-b" echo binary >> ftpABC.txt @if "%3"=="b" echo binary >> ftpABC.txt @if "%3"=="-bin" echo binary >> ftpABC.txt @if "%3"=="bin" echo binary >> ftpABC.txt @if "%3"=="-binary" echo binary >> ftpABC.txt @if "%3"=="binary" echo binary >> ftpABC.txt echo put %1 >> ftpABC.txt @rem *** @rem *** Logon & transfer the file @rem *** if not "%1"=="" ftp -i -n -s:ftpABC.txt ftp.users.bigpond.com @rem *** When behind a firewall use the following line @rem *** ftp -i -n -s:ftpABC.txt -a ftp.geocities.com del ftpABC.txt @if "%1"=="" echo *--*--*--*--*--*--*--*--*--*--* @if "%1"=="" echo Dear User, @if "%1"=="" echo You did not specify any parameters @if "%1"=="" echo for this batch script. This script @if "%1"=="" echo uploads a file to the 'janebishop' @if "%1"=="" echo account on the @if "%1"=="" echo Telstra BigPond server which has a url of @if "%1"=="" echo http://www.users.bigpond.com/ @if "%1"=="" echo .. @if "%1"=="" echo Usage: putf filename [subdirectory] [-binary] @if "%1"=="" echo .. @if "%1"=="" echo Please see the comments in the batch @if "%1"=="" echo file for more information @if "%1"=="" echo about how to use this script @if "%1"=="" echo *--*--*--*--*--*--*--*--*--*--*