Ask the Expert

Where can I find writing software for coping and moving directories/trees using C /C++?

Can you please give me some information or direct me to a good Web site that deals with writing software for coping and moving directories/trees using C and/or C++.

Requires Free Membership to View

I don't know of any source code floating around to answer the question, but it shouldn't be too difficult to implement. In the Windows world, take a look at the FindFirstFileEx and FindNextFile API functions. The trick to writing these programs is remembering to look for the directories before you look for the actual search pattern you are supposed to find. As for copying the files, you have the CopyFile API.

This was first published in January 2002

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: