Stacy Young wrote:

> It seems *sometimes* the script I'm including disables my server. I'm
> running Win2k Server with SP2 and MSSQL2k. CFMX updater has also been
> applied.

CF MX + updater + W2K SP3: no problem.

> <cfflush interval="100">
> <cfftp
>       action="open"
>       server="xx.xx.xxx.xx"
>       port="20280"
>       stoponerror="no"
>       username="myusername"
>       password="mypassword"
>       retrycount="3"
>       timeout="15"
>       connection="myConnection">
> Connected...<br>
> <cftry>
>       <cfftp
>               action="listdir"
>               stoponerror="no"
>               passive="yes"
>               name="hello"
>               directory="E:/ftproot"
>               connection="myConnection">
>       <cfcatch>
>               <cfdump var="#cfcatch#">
>               <cfftp action="close" connection="myConnection">
>               <cfabort>
>       </cfcatch>
> </cftry>
> Retrieving Directory Listings...<br>

Recommended changes for debugging:
<cfloop query="hello">
        <cfif hello.IsDirectory>

>       <cfset myDir = hello.name>
>       <cftry>
>               <cfftp
>                       action="listdir"
>                       passive="yes"
>                       name="blah"
>                       directory="E:/ftproot/#hello.name#"
>                       connection="myConnection">
>               <cfloop query="blah">
>                       <cfif findNoCase( url.aString , blah.name )>
>                       <strong><cfoutput>Found: /#myDir#/</strong> 
>#blah.name#</cfoutput><br>
>                       </cfif>
>               </cfloop>
>               <cfcatch>
>               <cfftp action="close" connection="myConnection">
>               Error! #blah.name#<br>
>               <cfdump var="#cfcatch#">
>               <cfabort>
>               </cfcatch>
>       </cftry>

        </cfif>
</cfloop>

> <cfftp action="close" connection="myConnection">

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to