[Tfug] question

Paul Lemmons paul at lemmons.name
Thu May 14 20:54:36 MST 2009


Angus Scott-Fleming wrote:
> 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
> +-----------------------------------+
>
> Good catch. I do so little with Windows that I miss the details sometimes.
>
>
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>
>   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3296 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://tfug.org/pipermail/tfug_tfug.org/attachments/20090514/feeaf643/attachment-0002.bin>


More information about the tfug mailing list