[Tfug] question

Angus Scott-Fleming angussf at geoapps.com
Thu May 14 08:04:50 MST 2009


On 13 May 2009 at 14:50, Paul Lemmons  wrote:

> If you are doing it from Windows and ftp is an option the batch file 
> would look something like:
> 
> @echo off
> 
> echo open myhost    >%TEMP%\ftpdata
> echo user myuserid >>%TEMP%\ftpdata
> echo MyPass        >>%TEMP%\ftpdata
> echo bin           >>%TEMP%\ftpdata
> echo cd myDir      >>%TEMP%\ftpdata
> echo put myfile    >>%TEMP%\ftpdata
> echo quit          >>%TEMP%\ftpdata
> ftp -n -s:%TEMP%\ftpdata
> erase %TEMP%\ftpdata

[quibble]
I would put "quotes" around every string containing %TEMP% (e.g.  
"%TEMP%\ftpdata") as TEMP in some versions of Windows can expand to a string 
containing spaces (e.g. "TEMP=C:\Documents and Settings\User Name\Local 
Settings\Temp" as well as "TEMP=C:\DOCUME~1\UserName\LOCALS~1\Temp").
[/quibble]

--
Angus Scott-Fleming
GeoApps, Tucson, Arizona
1-520-290-5038
+-----------------------------------+







More information about the tfug mailing list