so the cf app has access to both machines?

something like...

<cf__PleaseCopy
   SourceDir=""
   DestDir=""
   FileFilter="">

(It would slicker as a function I think. But I only have cf4.5.2. Even 
though I have been looking for the CF5 upgrade on eBay.)

== _PleaseCopy.cfm
<cfdirectory action="LIST" directory="path" name="L">

<cfoutput query="L">
   <cfswitch expression="#name#">
      <cfcase value="#NAME#"></cfcase>
          <cfdefaultcase>
             <cfif type is "D">
                    Create DIR at DEST
                        Recursive call to pleasecopy
                    <cf__PleaseCopy updated-attributes>
                 <cfelse>
            Copy File to dest
                 </cfif>
          </cfdefaultcase>
   </cfswitch>
</cfoutput>
== end of _PleaseCopy


From: "LANCASTER, STEVEN M. (JSC-OL) (BAR)" 
<[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: CF-Talk <[EMAIL PROTECTED]>
Subject: RE: copying files
Date: Thu, 13 Jun 2002 11:09:16 -0500

Because it is between 2 servers one is NT and the other is Unix and they
will not allow a batch file between the 2. That is why we have to do it this
way.

Steven Lancaster
Barrios Technology
NASA/JSC
281-244-2444 (voice)
[EMAIL PROTECTED]



-----Original Message-----
From: Eric Dawson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 10:49 AM
To: CF-Talk
Subject: Re: copying files


is there a reason you need to use cffile vs maybe a batch file?

Eric

From: "LANCASTER, STEVEN M. (JSC-OL) (BAR)"
<[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: CF-Talk <[EMAIL PROTECTED]>
Subject: copying files
Date: Thu, 13 Jun 2002 10:44:12 -0500

I need to use CFFILE to go through a directory (and Sub directories) and
copy all the files in the dir and subs and copy them to another location. My
problem is I need to get the file names and copy the files for the dir and
sub.. An help would be appreciated. If more info is needed let me know..

Steven Lancaster
Barrios Technology
NASA/JSC
281-244-2444 (voice)
[EMAIL PROTECTED]





______________________________________________________________________
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to