> Let me preface this post with this, " I am very tired, I have
> been working too hard, just like all of you, and I am sick to
> boot, so please forgive my stupidity."
>
> I have been successful at using CFFTP to do all sorts of things I
> need done, except get a remote file and put it locally.  I am
> using GetFile to attempt to write a file to my C:/Temp directory
> (for testing purposes). However, when I execute the process, it
> puts the file in the C:/Temp directory on the remote machine, not
> my local machine.  Am I mis-using GetFile?  Am I screwed up in the head?
>
> Code is as follows...
>
> <!---open the FTP connection--->
> <cfftp action="open"
> username="username"
> password="password"
> server="server"
> connection="test"
> stoponerror="yes">
>
> <!---change directory--->
> <cfftp action="ChangeDir"
>  connection="test"
>  directory="directory/"
>  stoponerror="yes">
>
> <!---download the file now --->
> <cfftp action="GetFile"
>  connection="test"
>  remotefile="remote_file.txt"
>  localfile="C:\temp\remote_file.txt"
>  failifexists="yes"
>  stoponerror="yes">
>
> <!---close the ftp connection--->
> <cfftp action="close"
> connection="test"
> stoponerror="yes">


Try specifying the directory of the remote file - I had this problem with a
PutFile that the directory fixed

remotefile="/remote_file.txt"

Pretty sure that sould fix it

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to