copy files with cfdirectory cffile

2008-06-17 Thread thomas v
Hi,

I have couple of questions to ask:

1) I can specific copy one file from one folder to another one but I cannot 
copy all files from my 'dropoff' to my 'gal_o7'. What 's wrong with the code 
below? 
2) I am setting up an event gateway and my CFC will do the copying (I have no 
CFML). How do I dump out the cfdirectory query? 

Thanks

Here is my code:

cfcomponent
cffunction name=onAdd
cffile action=write file=c:/testlog6.txt output=Here I am back to 
sssrootasasay  
CFDIRECTORY Directory= c:/mylocaldir/dropoff NAME=DropoffDir ACTION=List 

CFTABLE QUERY=DropoffDir HTMLTABLE COLHEADERS
CFCOL HEADER=Name TEXT=#Name#
CFCOL HEADER=Type TEXT=#Type#
CFCOL HEADER=Size TEXT=#Size#
/CFTABLE

CFLOOP QUERY=DropoffDir
CFFILE ACTION=Copy SOURCE=c:\mylocaldir\dropoff\ DESTINATION=c:\gal_07\ 
NAMECONFLICT=Overwrite
/CFLOOP
/cffunction
/cfcomponent


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307616
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


copy files with cfdirectory cffile

2008-06-17 Thread thomas v
Hi,

I have couple of questions to ask:

1) I can specific copy one file from one folder to another one but I cannot 
copy all files from my 'dropoff' to my 'gal_o7'. What 's wrong with the code 
below? 
2) I am setting up an event gateway and my CFC will do the copying (I have no 
CFML). How do I dump out the cfdirectory list? 

Thanks

Here is my code:

cfcomponent
cffunction name=onAdd
cffile action=write file=c:/testlog6.txt output=Here I am back to 
sssrootasasay  
CFDIRECTORY Directory= c:/mylocaldir/dropoff NAME=DropoffDir ACTION=List 

CFTABLE QUERY=DropoffDir HTMLTABLE COLHEADERS
CFCOL HEADER=Name TEXT=#Name#
CFCOL HEADER=Type TEXT=#Type#
CFCOL HEADER=Size TEXT=#Size#
/CFTABLE

CFLOOP QUERY=DropoffDir
CFFILE ACTION=Copy SOURCE=c:\mylocaldir\dropoff\ DESTINATION=c:\gal_07\ 
NAMECONFLICT=Overwrite
/CFLOOP
/cffunction
/cfcomponent


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307617
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4