Writing code to sync all files from directory A to directory B, anyone done this already in CF?

I am starting code to allow variable folders to be named, and have a program sync all folders and files from 1 directory to another in windows 2003 / ColdFusion MX.  Anyone have something like this already?  I have a feeling that coding for N levels of sub-folders is going to be tricky...
LVL 1
JUSTICEAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kkhippleCommented:
i haven't done this.. but logically, it seems simple enough

if you are using CF MX (6.0) then create a CFC that does the checking of each file within one directory with no further subdirectories... then waht you need to do is code another section that goes recursively through each directory and runs your CFC..that's a very basic approach to it.... dont know if u have already thought of that... just trying to contribue as much as i can for now
0
JUSTICEAuthor Commented:
I think my additional issue is this:  The data is all 30 - 80K .tiff images, and the folder I need to sync up has (right now) 12 sub-folders, each of which has up to 30 - 40 sub-folders of their own, each containing thousands of .tiff images.  Right now I am sitting at about 6 gigs of images, and growing by about 25 - 30 megs each day.  I need to find a way to only copy the images that have not been copied over, because I will soon not be able to sync the whole folder each night!  
0
Tacobell777Commented:
how are the images put into their folders?

And why not use robocopy? http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en
or xxcopy http://www.xxcopy.com/index.htm

they do a pretty good job, its free and if you really want to you can call it with cfexecute
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tacobell777Commented:
To finish what I started, if the files are put into their folders through CF you can do an insert of the file details in the db , and flag the ones who have not been sync'd yet.. But I would recommend to use any of the above tools.
0
JUSTICEAuthor Commented:
Yea, I have good ole x-copy running in the background right now w/ archive bit.  That will do the trick.  ;)

Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.