Rick,
I have one that is similar however, I have it like so:

<cfftp connection="lskdf" action="getfile"
remotefile="#currentdir#/#name#" localfile="#localfile#"
transfermode="binary"
timeout="30" retrycount="3" stoponerror="no" failifexists="no">

where above the cfftp, I set the Local file to "g:/DailyFile/" &#name#

works no problem, as the name file and currentdir, are both coming from a
previous cfftp that lists the dir, and then loops then and the files as a
query.

HTH

Rob


On Wed, May 27, 2009 at 9:34 PM, Rick Faircloth <[email protected]>wrote:

>
> Why do I get the error, "the system cannot find the file specified" when I
> used this line:
>
> localFile =
> "f:\inetpub\webroot\real_estate_data\smlc\daily_downloads\zip_files\#name#
>
> as part of this code:
>
> <cfftp     connection   =   "lskdjf"
>             action          =   "getFile"
>             passive        =   "yes"
>             remoteFile   =   "#name#"
>             localFile      =
> "f:\inetpub\webroot\real_estate_data\smlc\daily_downloads\zip_files\#name#"
>             failIfExists    =   "yes"
>             timeout        =   "600000"
>             stopOnError =   "yes">
>
> It seems, based on the documentation, that localFile ought to be a file
> that
> exists already on the local system.
> However, that doesn't make a lot of sense.  There no way to know what the
> file name will be.  And other uses
> of cfftp getFile have allowed a variable...just name the same name as the
> remoteFile.  I gave it a different name.
>
> Can the localFile filename not be #name# ?
>
> Rick
>
>
> --
>
> --------------------------------------------------------------------------------------------------------------------------------------------------
> "Ninety percent of the politicians give the other ten percent a bad
> reputation."  Henry Kissinger
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322849
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to