Hello all

Does anyone know how to run <CFFILE> without passing it a form field name.

Want to copy files from one directory to another on the same server, but
when I try

<CFDIRECTORY ACTION="LIST" DIRECTORY="c:\dir1" NAME="getfiles">

<CFOUTPUT query="getfiles">
<CFIF getfiles.name NEQ "." and getfiles.name NEQ "..">
<CFSET filetomove = "c:\dir1\" & getfiles.name>
<CFFILE ACTION="UPLOAD" FILEFIELD="#filetomove#" DESTINATION="D:\temp\"
NAMECONFLICT="ERROR">
</CFIF>

</CFOUTPUT>
it errors and says I have to pass a form field name for the FILEFIELD.

If I simply output the #filetomove# all the file names look correct.

Using CF5 on WIN2K.

Thanks for any help
Rodney
______________________________________________________________________
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to