Hi Nick try this....

<cfparam name="directorypath" default="C:\CFusionMX7\Mail\Undelivr\">
<cfdirectory directory="#directorypath#" name="myDirectory" action="list">
<cfoutput>#myDirectory.RecordCount#</cfoutput>
<cfif #myDirectory.RecordCount# gt 0>
        <cfoutput query="mydirectory">
                <cfif #type# EQ "File">
            <cffile action="move" source="#directorypath##name#" 
destination="C:\CFusionMX7\Mail\Spool" >
        </cfif>
    </cfoutput>
</cfif>

and add a schedular in the cold fusion administrator. Still apart from this we 
have another alternative of using Directory watcher Events, which do not need a 
schedular, they are invoked automatically when a new file comes to the 
undeliver folder. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314841
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to