RE: Copying a Directory and it's files
Why not get a list of files with cfdirectory then loop over your cffile action. I am sure there is a way to do it with cfexecute if you can pass variables to a batch file but I have no experience doing that. Robert Everland III Web Developer Dixon Ticonderoga -Original Message- From: Jake Hileman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 15, 2000 4:22 PM To: [EMAIL PROTECTED] Subject: Copying a Directory and it's files I'm trying to copy a directory and it's contents to another directory... any ideas on how I can achieve this? I've tried many things with cffile and cfexecute... any help? jake -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ 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. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ 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.
Re: Copying a Directory and it's files
Ahhh, true, pass to batch file! Good idea! I'll be copying the same thing over and over so just create a batch file to do it. Hmm, Does anyone know a way to pass variables to a batch file? Any code snippets? jake - Original Message - From: "Robert Everland" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 15, 2000 4:52 PM Subject: RE: Copying a Directory and it's files > Why not get a list of files with cfdirectory then loop over your cffile > action. I am sure there is a way to do it with cfexecute if you can pass > variables to a batch file but I have no experience doing that. > > Robert Everland III > Web Developer > Dixon Ticonderoga > > > -Original Message- > From: Jake Hileman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 15, 2000 4:22 PM > To: [EMAIL PROTECTED] > Subject: Copying a Directory and it's files > > > SOURCE="d:\apps\cgi-bin\*.*" > DESTINATION="d:\www\#domain#\cgi-bin\"> > > I'm trying to copy a directory and it's contents to another directory... > any > ideas on how I can achieve this? > > I've tried many things with cffile and cfexecute... any help? > > jake > > > -- -- > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > 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. > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > 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. > -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ 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.
RE: Copying a Directory and it's files
Use CFDIRECTORY to list the files in a query then loop through the query and use CFFILE to copy the individual files. Justin Kidman -Original Message- From: Jake Hileman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 15, 2000 4:26 PM To: [EMAIL PROTECTED] Subject: Re: Copying a Directory and it's files Ahhh, true, pass to batch file! Good idea! I'll be copying the same thing over and over so just create a batch file to do it. Hmm, Does anyone know a way to pass variables to a batch file? Any code snippets? jake - Original Message - From: "Robert Everland" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 15, 2000 4:52 PM Subject: RE: Copying a Directory and it's files > Why not get a list of files with cfdirectory then loop over your cffile > action. I am sure there is a way to do it with cfexecute if you can pass > variables to a batch file but I have no experience doing that. > > Robert Everland III > Web Developer > Dixon Ticonderoga > > > -Original Message- > From: Jake Hileman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 15, 2000 4:22 PM > To: [EMAIL PROTECTED] > Subject: Copying a Directory and it's files > > > SOURCE="d:\apps\cgi-bin\*.*" > DESTINATION="d:\www\#domain#\cgi-bin\"> > > I'm trying to copy a directory and it's contents to another directory... > any > ideas on how I can achieve this? > > I've tried many things with cffile and cfexecute... any help? > > jake > > > -- -- > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > 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. > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > 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. > -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ 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. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ 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.
Re: Copying a Directory and it's files
Yeah that' what I'd figure I'd have to do but there are many many subdirectories also. Oh well. Jake - Original Message - From: "Justin Kidman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 15, 2000 7:22 PM Subject: RE: Copying a Directory and it's files > Use CFDIRECTORY to list the files in a query then loop through the query and > use CFFILE to copy the individual files. > > Justin Kidman > > -Original Message- > From: Jake Hileman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 15, 2000 4:26 PM > To: [EMAIL PROTECTED] > Subject: Re: Copying a Directory and it's files > > > Ahhh, true, pass to batch file! Good idea! > > I'll be copying the same thing over and over so just create a batch file to > do it. > > Hmm, Does anyone know a way to pass variables to a batch file? Any code > snippets? > > jake > - Original Message - > From: "Robert Everland" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, August 15, 2000 4:52 PM > Subject: RE: Copying a Directory and it's files > > > > Why not get a list of files with cfdirectory then loop over your cffile > > action. I am sure there is a way to do it with cfexecute if you can pass > > variables to a batch file but I have no experience doing that. > > > > Robert Everland III > > Web Developer > > Dixon Ticonderoga > > > > > > -Original Message- > > From: Jake Hileman [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, August 15, 2000 4:22 PM > > To: [EMAIL PROTECTED] > > Subject: Copying a Directory and it's files > > > > > > > SOURCE="d:\apps\cgi-bin\*.*" > > DESTINATION="d:\www\#domain#\cgi-bin\"> > > > > I'm trying to copy a directory and it's contents to another directory... > > any > > ideas on how I can achieve this? > > > > I've tried many things with cffile and cfexecute... any help? > > > > jake > > > > > > -- > -- > > -- > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > > 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. > > -- > > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > > 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. > > > > -- -- > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > 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. > -- > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > 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. > -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ 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.