Try the copy

<cffile action="COPY" source="c:\inetpub\getfiles.name#"
destination="c:\wwwroot\#getfiles.name#">

Paul Giesenhagen
QuillDesign


----- Original Message -----
From: "Bruce, Rodney S HQISEC/SIGNAL" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, August 01, 2002 4:37 PM
Subject: <CFFILE>


> 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
> 
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
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