Not sure why you don't want to use a custom tag, but if you change your
mind, look into CF_AutoCopy in the Allaire tag gallery.

If you want to do it yourself, you'll need to get directory listings, copy
individual files, traverse subdirectories, create subdirectories at the
destination.  You'll have to use both the CFDIRECTORY and CFFILE tags.
Use CFDIRECTORY with ACTION="LIST" and ACTION="CREATE" and CFFILE with
ACTION="COPY".  Loop over the directory listing, checking queryname.type.
If the type is 'file', copy the file, otherwise create the subdirectory,
then recursively do the same thing in subdirectories.

Jim


-----Original Message-----
From: Gregory M. Albert <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, July 03, 2000 2:26 PM
Subject: copy all files in a directory?


>I am a little confused about the syntax for CFFile. I want to copy all
the
>files in a directory (including subfolders), but don't see an easy way to
do
>this in ColdFusion 4.0. I would also rather not use custom tags, if
>possible.
>
>Can someone show me the correct way to set up the initial and action
pages?
>Thanks ever so much.
>
>- Greg Albert


------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to