CF 4.0 had problems with CFFTP try upgrading your production box to CF 4.5

Mary



                                                                                       
                             
                    "Sicular,                                                          
                             
                    Alexander"           To:     CF-Talk <[EMAIL PROTECTED]>   
                             
                    <as867@columb        cc:                                           
                             
                    ia.edu>              Subject:     cfftp chagedir                   
                             
                                                                                       
                             
                    01/29/01                                                           
                             
                    09:27 PM                                                           
                             
                    Please                                                             
                             
                    respond to                                                         
                             
                    cf-talk                                                            
                             
                                                                                       
                             
                                                                                       
                             




hi all -

so i was trying out a new ftp script the other day... weird problem came
up.
the ftp code did not work on my dev box but did work on my production box.
the ftp server is w2k. basically i was trying to chagedir to a sub dir. but
the damn thing would not work.

my dev box has these stats:
Server Information
         Server Product ColdFusion Server
         Version 4, 5, 1, SP2
         Edition Professional
         Operating System Windows NT
         OS Version 4.0, Service Pack 4
         OS Build Number 1381

my production box has these stats:
Server Information
         Server Product ColdFusion Server
         Version 4, 0, 1, 0
         Edition Professional
         Operating System Windows NT
         OS Version 4.0, Service Pack 6
         OS Build Number 1381

<!--- ftp module --->

<cfftp action="OPEN" server="somecomputer" username="name" password
="pass"connection="send" stopXnerror="Yes">
<cfoutput>
open - #cfftp.succeeded# - #cfftp.errorcode# - #cfftp.errortext#<br>
</cfoutput>

<cfftp connection="send" action="GETCURRENTDIR" stopXnerror="Yes">
<cfoutput>
get dir - #cfftp.succeeded# - #cfftp.errorcode# - #cfftp.errortext# -
#cfftp.returnvalue#<br>
</cfoutput>

<cfftp connection="send" action="LISTDIR" directory="
#cfftp.returnvalue#"name="dirlist" stopXnerror="Yes">
<cfoutput query="dirlist">
#name# #path# #url# #length# #dateformat(lastmodified)# #isdirectory#<br>
</cfoutput>

<cfftp connection="send" action="changedir" directory="dave"stopXnerror
="Yes">
<cfoutput>
cd dave - #cfftp.succeeded# - #cfftp.errorcode# - #cfftp.errortext#<br>
</cfoutput>

<cfftp connection="send" action="GETCURRENTDIR" stopXnerror="Yes">
<cfoutput>
get dir - #cfftp.succeeded# - #cfftp.errorcode# - #cfftp.errortext# -
#cfftp.returnvalue#<br>
</cfoutput>

<cfftp connection="send" action="CLOSE" stopXnerror="Yes">
<cfoutput>
close - #cfftp.succeeded# - #cfftp.errorcode# - #cfftp.errortext#<br>
</cfoutput>

<!--- //ftp module --->

this is the output of that file on the dev box:

open - YES - 0 -
get dir - YES - 0 - 257 "/" is current directory. - /
dave //dave ftp://somecomputer//dave 16-Nov-00 YES
cd dave - YES - 0 - 250 CWD command successful.
get dir - YES - 0 - 257 "/" is current directory. - /
close - YES - 0 -



this is the output of that same file on the prod box:

open - TRUE - -
get dir - TRUE - - - /
dave /dave ftp://somecomputer/dave 0 16-Nov-00 YES
cd dave - TRUE - -
get dir - TRUE - - - /dave
close - TRUE - -


notice the second getdir after the chagedir.  both cf servers report
success
but the dev doesn't really do it. any ideas?

thank you,

Alexander Sicular
Technical Director, Information Technology
The Neurological Institute of New York
Columbia University
212.305.1318
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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