The following code is able to open and close the connection to my remote
server fine (permissions are set properly). However, it skips over (or
doesn't find) the file on the remote server in the GETFILE action.  What
am I doing wrong?

Thanks for your help.

Mark

========================================================================
=====
<!--- Retrieves the database from the server to the local machine --->

<!--- Set the parameters to be used on retrieving this database --->
<CFSET serverip="123.456.789.012">
<CFSET username1 = "myuser">
<CFSET password1 = "mypswd">
<CFSET localfile1 = "c:\temp\foo.mdb">
<CFSET remotefile1 = "foo.mdb">


<!--- Opens the directory  --->
<CFLOCK TIMEOUT="60" THROWONTIMEOUT="No" TYPE="EXCLUSIVE"
SCOPE="SESSION">

<CFFTP ACTION="OPEN"
       SERVER="#serverip#" 
       USERNAME="#username1#"
       PASSWORD="#password1#"
       STOPONERROR="Yes"
       PASSIVE="Yes"
       CONNECTION="getdb">

</CFLOCK>

Connection opened - beginning file download to your local machine.

<!--- Gets the file from the server and puts it on the local machine
--->
<CFLOCK TIMEOUT="60" THROWONTIMEOUT="No" TYPE="READONLY"
SCOPE="SESSION">

<CFFTP ACTION="GETFILE"
       STOPONERROR="Yes"
       PASSIVE="Yes"
       LOCALFILE="#localfile1#"
       REMOTEFILE="#remotefile1#"
       TRANSFERMODE="AUTO"
       FAILIFEXISTS="No"
       CONNECTION="getdb">

</CFLOCK>

<!--- Closes the connection  --->
<CFLOCK TIMEOUT="60" THROWONTIMEOUT="No" TYPE="EXCLUSIVE"
SCOPE="SESSION">

<CFFTP ACTION="CLOSE"
       STOPONERROR="Yes"
       PASSIVE="Yes"
       CONNECTION="getdb">

</CFLOCK>

Thanks,
Mark

______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to