James:  Try referencing the file as a complete path.

try
<...file="c:\inetpub\wwwroot\my_site\directory_name\#form.attachment#">

Let me know if this works. I have had some strange problems with the
CFFILE..delete thing.

Good Luck
Nick Call
[EMAIL PROTECTED]

----- Original Message -----
From: "James Taavon" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, January 09, 2001 2:17 PM
Subject: Delete Files


> If I want to be able to delete files from a directory what should I use,
> CFFILE ACTION="Delete" ?
>
> I am trying something like that but coming up with an error. What is the
> proper syntax? Do reference the filename being deleted as a variable?
>
> This did not work:
>
> <cffile action="DELETE" file="directory name/#form.attachment#">.
>
>
> Should I be using CFDIRECTORY instead? Need some guidance here.
>
> Thanks in advance,
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to